Dmitri Farafontov
asked on
Setting up an Email Server
I am trying to setup my Mail Server.
2 DNS Servers
name.myhostname.com (Primary)
mail.myhostname.com (Secondary)
Two users pop and imap
I can send/recieve an email from/to
imap@mail.myhostname.com
pop@mail.myhostname.com
however,how would I go about setting it up so it works for
imap@myhostname.com
pop@myhostname.com
2 DNS Servers
name.myhostname.com (Primary)
mail.myhostname.com (Secondary)
Two users pop and imap
I can send/recieve an email from/to
imap@mail.myhostname.com
pop@mail.myhostname.com
however,how would I go about setting it up so it works for
imap@myhostname.com
pop@myhostname.com
ASKER
That entry is already in the DNS Server. Anything else I can try?
Change the mail server (sendmail ?) config of your server to "masquerade" as its domain.
Wesly
Wesly
ASKER
I use Postfix as my MTA.
/etc/postfix/main.cf:
masquerade_domains = mail.myhostname.com myhostname.com
For more details, please check:
http://www.postfix.org/ADDRESS_REWRITING_README.html
Wesly
masquerade_domains = mail.myhostname.com myhostname.com
For more details, please check:
http://www.postfix.org/ADDRESS_REWRITING_README.html
Wesly
ASKER
Email does arrive with proper headers like:
imap@myhostname.com
pop@myhostname.com
However, when I send it I still need to type
pop@mail.myhostname.com
imap@mail.myhostname.com
How would I fix it to be a Global Setting for all the users. Someone told that DNS would be enough, but however its not working out ways I want it to be.
imap@myhostname.com
pop@myhostname.com
However, when I send it I still need to type
pop@mail.myhostname.com
imap@mail.myhostname.com
How would I fix it to be a Global Setting for all the users. Someone told that DNS would be enough, but however its not working out ways I want it to be.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Add MX record into your DNS servers :
--BIND DNS ---------------------
myhostname.com
...
MX 10 mail.myhostname.com <====
----------------------
Wesly