I've set up my postfix server according to this tutorial: Email with Postfix, Dovecot, and MySQL
However, I'm getting connection a refused error.
The mail queue says mail is coming in, but it is not getting delivered. Mail Queue
The mail logs are similarly uninformative.
Output of /var/log/mail.log:
Mar 18 14:08:03 magico postfix/qmgr: 8F0E843441: from=<firstname.lastname@example.org>, size=6139, nrcpt=1 (queue active) Mar 18 14:08:03 magico postfix/lmtp: 8F0E843441: to=<email@example.com>, relay=none, delay=1007, delays=1007/0.02/0/0, dsn=4.4.1, status=deferred (connect to dwgfinder.com[private/dovecot-lmtp]: Connection refused)
I suspect that there may be an issue with my /etc/hosts
If I ping my mail server address it returns a defunct servername:
PING mail.xxxxxxxoap.co.za (xxx.xxx.xxx.xxx) 56(84) bytes of data. 64 bytes from xxxxxxoodrc.co.uk (xxx.xxx.xxx.xxx): icmp_seq=1 ttl=56 time=215 ms
(from when I first leased the VPS).
My /etc/hosts has the following:
127.0.0.1 localhost ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters 127.0.0.1 mail.xxxxxxxxxxxxt.co.za 127.0.0.1 mail.xxxxxxxxxxxxoap.co.za xxx.xxx.xxx.xxx xxxxxxxxxxxxxr.com # Auto-generated hostname. Please do not remove this comment. xxx.xxx.xxx.xxx gico
Hopefully somebody has some suggestions on what to do to make my mail server run correctly!