I’ve been searching and reading through numerous posts, but can’t seem to find a resolution to my email issue.
I’m seeing the following in my logs, every few minutes;
Apr 10 23:53:50 toronto01 postfix/smtpd: warning: hostname toronto01.kasnetwork.com does not resolve to address 22.214.171.124 Apr 10 23:53:50 toronto01 postfix/smtpd: connect from unknown[126.96.36.199] Apr 10 23:53:50 toronto01 postfix/smtpd: disconnect from unknown[188.8.131.52]
I have reverse pointers setup and the hostname does resolve at mxtoolbox --> https://mxtoolbox.com/SuperTool.aspx?action=ptr%3A184.108.40.206&run=toolpage
I just can’t seem to figure out why this error occurs as the logs offer no real explanation. No rejected messages, or SASL login failed, etc., such as this entry;
Apr 10 23:59:42 toronto01 postfix/smtpd: warning: hostname 80-69-247-10.pasargadnet.ir does not resolve to address 220.127.116.11 Apr 10 23:59:42 toronto01 postfix/smtpd: connect from unknown[18.104.22.168] Apr 10 23:59:45 toronto01 postfix/smtpd: warning: unknown[22.214.171.124]: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Apr 10 23:59:45 toronto01 postfix/smtpd: disconnect from unknown[126.96.36.199]
I don’t know where this “connection” is coming from. It appears as if the server is connecting to itself, but for what reason and why it doesn’t resolve I just can’t understand.
Any pointers would be greatly appreciated!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $200 of credit to try our products over 60 days!
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
Everything was working, so this wasn’t urgent and I kinda back-burnered it for a while.
It seems I resolved it today when I ran into a discussion about setting up /etc/hosts and the purpose of 127.0.1.1. That led me to this -> https://serverfault.com/questions/363095/why-does-my-hostname-appear-with-the-address-127-0-1-1-rather-than-127-0-0-1-in
From the Debian manual; For a system with a permanent IP address, that permanent IP address should be used here instead of 127.0.1.1.
So, my hostname was resolving (as far as Postfix was concerned) to 127.0.1.1.
Removing the 127.0.1.1 line from /etc/hosts, so it looks like this;
and then restarting Postfix, has resolved the hostname verification errors I was seeing.
As a side note, I did have both
lmpt_host_lookup = nativebefore these changes to see if it would help. It did not, so I removed them both before restarting Postfix so the default settings (dns) would be used. It appears as these settings are not needed and can be left at their default values.
Hopefully it will help someone else.
smtp_host_lookup = nativeto your
main.cf. That should make use of your /etc/hosts - if you have anything special setup there.
It’s just warnings, so it’s still working correctly. You can safely ignore that warning. When I run
dig toronto01.kasnetwork.com A
I don’t think Postfix can handle multiple different returns. This should be an A-record instead of a CNAME, just to make sure we play nice with old mail servers.
And as for
80-69-247-10.pasargadnet.irit does not resolve, so the warning is legit.
I’m suffering the same behaviour… the server can resolve without issues, but postfix keep showing this error. My /etc/hosts and host.conf are well configured, with “multi on” parameter also enabled.
What else should i check?
I know it’s a warning, but i’m afraid if i configure some restrictions this mail will not pass trough.