HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Postfix configuration problem (http://www.howtoforge.com/forums/showthread.php?t=60156)

teves 7th January 2013 13:34

Postfix configuration problem
 
Hello,

I have a small problem with my postfix configuration.
In the /var/log/mail.log file I get warnings like the following:
warning: 127.0.0.1: address not listed for hostname localhost.localdomain
very regularly.
I searched this issue in the forum and it has already been discussed, but not solved seemingly.
After trying some things I spotted the detail in the master.cf which is responsible for those messages:
content_filter = amavis:[127.0.0.1]:10024
After commenting out this line I get no warnings any more. But this can not be the solution....
Any ideas what I cound do about it?

Thank you!
Regards, Tom

till 7th January 2013 13:59

Ensure that you have the line:

127.0.0.1 localhost localhost.localdomain

in your /etc/hosts file. Do not comment out theline content_filter = amavis:[127.0.0.1]:10024 because your mail system will stop working then.

tafkaz 7th January 2013 15:57

Hi Till,
we had this in our hosts-file already, but i think we found the problem.
As we are using an openVZ guest for ISPConfig our ifconfig looks like this:

Code:

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:11007 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11007 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:997376 (974.0 KiB)  TX bytes:997376 (974.0 KiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.2  P-t-P:127.0.0.2  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:9581 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9086 errors:0 dropped:21 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:908263 (886.9 KiB)  TX bytes:2444074 (2.3 MiB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:123.123.666.666  P-t-P:123.123.666.666  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

So i guess i will have to add

Code:

127.0.0.2 localhost.localdomain localhost
to my hosts-file?

can i leave
Code:

127.0.0.1 localhost.localdomain localhost
in it as well, or should that line be replaced totally?

Thank you very much
Sascha


All times are GMT +2. The time now is 14:02.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.