Re: Creating Mail Server on Ubuntu 12.04 LTS Server on a VPS
If I'm not mistaken, the postfix main.cf file has an option for mynetworks or similar. You need to tell it it can receive main from all public IPs. Did you do that?
To be able to receive mail directly from any mailserver in the world you would have to allow 0.0.0.0/0 I think. Save and close the file. Restart postfix.
Also, from another machine when you do ping mail.domain.com does it show your server public IP? Did you make the mail A record in the registrar control panel where the domain is? You need to create it as A host, just putting mail doesn't mean anything. In fact, you can call it as you wish, people usually call it mail.
PS. Also try
telnet mail.domain.com 25
to see if postfix will respond. If it doesn't, the DNS is probably not configured right. No one can send you email if your DNS is not correctly configured or the mail server doesn't respond.
Why did you install both sendmail and postfix, don't they clash? I'm not a mail expert myself, so I'm only asking. You only need one MTA which is postfix. And one MDA to allow pop3/imap connections, which is dovecot. Nothing else.
Last edited by darkod; April 13th, 2013 at 08:44 PM.
Darko.
-----------------------------------------------------------------------
Ubuntu 18.04 LTS 64bit
Bookmarks