Solved Postfix SMTP Warning

I am presuming that what I have is an issue with the hosts.

I am getting the following error in maillog.
Code:
Feb 27 10:11:04 tuna postfix/smtpd[2155]: warning: hostname localhost does not resolve to address 127.0.0.1: hostname nor servname provided, or not known
Feb 27 10:11:04 tuna postfix/smtpd[2155]: connect from unknown[127.0.0.1]
My hosts (which may be totally confused after reading several solutions is):
Code:
::1                     localhost
#127.0.0.1               localhost
127.0.0.1               localhost
127.0.0.1            tuna.theoceanwindow-bv.com tuna
209.160.65.133          tuna.theoceanwindow-bv.com  tuna
209.160.68.112          tuna.theoceanwindow-bv.com tuna
I am running FreeBSD 8.1 and POSTFIX 2.12. I know it is just a warning but I am trying to clean those up.
 
Last edited by a moderator:
Which system? Oh mea culpa. I trusted memory instead of verifying, when support ended for 8.1 iI upgraded to 8.4. My apologies for that dumb mistake.
 
iI modified the hosts to as follows:
Code:
::1                     localhost
127.0.0.1               localhost
#127.0.0.1            tuna.theoceanwindow-bv.com tuna
209.160.65.133          tuna.theoceanwindow-bv.com  tuna
209.160.68.112          tuna.theoceanwindow-bv.com tuna
Same message in log file.
 
Is postfix config to have mydestinations and mynetwork to hold the value localhost and 127.0.0.1?

What do you have set for inet_interfaces in postfix in your main.cf file? in there you should have 127.0.0.1 and localhost.

Use command postconf -n it should print out your current main.cf settings.

Look at the variables I said above: inet_interfaces, mysdestinations, mynetworks. All should have 127.0.0.1 and localhosts.

In mynetworks it should have 127.0.0.0/8 there.
In mydestinations it should have localhost listed there. No 127.0.0.1 should be there in mysdestinations.

The inet_interfaces variable should have 127.0.0.1 or the word all there. Either one is ok and that isn't the problem.

Mydomain variable check that too. comment it out and copy and past it on a new line. Then try setting it to localhost. That's if localhost isn't already there.
 
Ok "mydestination" was as you suggested > I had assumed the default for "inet_interfaces" which is a ALL would cover the 127.0.0.1 but i reconfigure that per your suggestion and changed my 127.0.0.0 entry in "mynetworks" from 127.0.0.0/32 to 127.0.0.0/8 and i no longer get the warning Thanks!!
 
Ok "mydestination" was as you suggested > I had assumed the default for "inet_interfaces" which is a ALL would cover the 127.0.0.1 but i reconfigure that per your suggestion and changed my 127.0.0.0 entry in "mynetworks" from 127.0.0.0/32 to 127.0.0.0/8 and i no longer get the warning Thanks!!
No problem, I am glad I can help.
 
Back
Top