Link to home
Start Free TrialLog in
Avatar of Dmitri Farafontov
Dmitri FarafontovFlag for Canada

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

 
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Hi,

  Add MX record into your DNS servers :

--BIND DNS ---------------------
myhostname.com
...
   MX 10 mail.myhostname.com    <====
----------------------
Wesly
Avatar of Dmitri Farafontov

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
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
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.


ASKER CERTIFIED SOLUTION
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial