Postfix configuration problem

Discussion in 'Installation/Configuration' started by teves, Jan 7, 2013.

  1. teves

    teves Member

    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
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    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.
     
  3. tafkaz

    tafkaz New Member HowtoForge Supporter

    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
     

Share This Page