mail error messages

Discussion in 'ISPConfig 3 Priority Support' started by bobpit, Feb 17, 2014.

  1. bobpit

    bobpit Member

    I saw these error messages in the mail.log:
    Code:
    Feb 16 23:10:23 server1 authdaemond: Installation complete: authpam
    Feb 16 23:10:25 server1 sm-mta[814]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 16 23:10:25 server1 sm-mta[816]: starting daemon (8.14.4): SMTP+queueing@00:10:00
    Feb 16 23:15:02 server1 sendmail[1628]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 16 23:20:01 server1 sendmail[1779]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 16 23:25:02 server1 sendmail[1911]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 16 23:30:02 server1 sendmail[2061]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 16 23:35:02 server1 sendmail[2194]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 16 23:40:03 server1 sendmail[2366]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 16 23:45:01 server1 sendmail[2497]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 16 23:50:01 server1 sendmail[2634]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 16 23:55:01 server1 sendmail[2764]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 17 00:02:35 server1 sendmail[2992]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 17 00:05:05 server1 sendmail[3089]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 17 00:10:04 server1 sendmail[3227]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 17 00:15:08 server1 sendmail[3360]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 17 00:20:02 server1 sendmail[3512]: gethostbyaddr(127.0.0.2) failed: 1
    They are sent every 5 minutes, so it could be munin is trying to send messages.

    This is AFTER I replaced postfix with msmtp.

    Searching for "127.0.0.2" returned this:
    Code:
    $ grep -r -l "127.0.0.2" /etc/*
    grep: /etc/blkid.tab: No such file or directory
    /etc/network/interfaces
    Just in case it helps, here is the syslog:
    Code:
    Feb 17 00:19:09 server1 named[313]: client 62.210.136.226#21180: query (cache) 'hak4umz.net/ANY/IN' denied
    Feb 17 00:20:01 server1 CRON[3440]: (smmsp) CMD (test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp)
    Feb 17 00:20:01 server1 CRON[3439]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Feb 17 00:20:01 server1 CRON[3442]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi)
    Feb 17 00:20:01 server1 CRON[3441]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Feb 17 00:20:01 server1 CRON[3455]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi)
    Feb 17 00:20:01 server1 CRON[3435]: (munin) MAIL (mailed 1 byte of output; but got status 0x004e,  )
    Feb 17 00:20:02 server1 sendmail[3512]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 17 00:21:01 server1 CRON[3531]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Feb 17 00:22:01 server1 CRON[3549]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Feb 17 00:23:01 server1 CRON[3597]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Feb 17 00:24:01 server1 CRON[3610]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Feb 17 00:25:01 server1 CRON[3626]: (root) CMD (if [ -x /etc/munin/plugins/apt_all ]; then /etc/munin/plugins/apt_all update 7200 12 >/dev/null; elif [ -x /etc/munin/plugins/apt ]; then /etc/munin/plugins/apt update 7200 12 >/dev/null; fi)
    Feb 17 00:25:01 server1 CRON[3627]: (getmail) CMD (/usr/local/bin/run-getmail.sh > /dev/null 2>> /dev/null)
    Feb 17 00:25:01 server1 CRON[3628]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Feb 17 00:25:01 server1 CRON[3635]: (munin) CMD (if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; fi)
    Feb 17 00:25:02 server1 CRON[3623]: (munin) MAIL (mailed 1 byte of output; but got status 0x004e,  )
    Feb 17 00:25:03 server1 sendmail[3681]: gethostbyaddr(127.0.0.2) failed: 1
    Feb 17 00:26:02 server1 CRON[3701]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
    Feb 17 00:27:01 server1 CRON[3731]: (root) CMD (/usr/local/ispconfig/server/server.sh 2>&1 > /dev/null | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done)
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if you run some kind of sndmail, and not postfix, and the senmail server you installed is not able to resolve Ip 127.0.0.2.
     
  3. bobpit

    bobpit Member

    I agree. This is why I made a text search for "127.0.0.2" (and found nothing).
    Code:
    $ grep -r -l "127.0.0.2" /etc/*
    grep: /etc/blkid.tab: No such file or directory
    /etc/network/interfaces
    Any idea where this could be located?
     
  4. bobpit

    bobpit Member

    I must be blind. It is in /etc/network/interfaces:

    Code:
    # Auto generated venet0 interface
    auto venet0
    iface venet0 inet manual
    	up ifconfig venet0 up
    	up ifconfig venet0 [B]127.0.0.2[/B]
    	up route add default dev venet0
    	down route del default dev venet0
    	down ifconfig venet0 down
    Is this something that ispconfig does?
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    No. Thats from openvz. Just add a line for this ip to the /etc/hosts file of your server.
     
  6. bobpit

    bobpit Member

    This is the etc/hosts file:
    Code:
    127.0.0.1 localhost.localdomain localhost
    # Auto-generated hostname. Please do not remove this comment.
    192.210.214.129 server1.surf-anonymous.info  server1
    ::1 localhost.localdomain localhost
    Where do I add the 127.0.0.2 ?

    I think this file is also auto generated.
     
  7. bobpit

    bobpit Member

    Till

    I am googling all morning on this issue.

    You are more experienced. If you could tell me what is the meaning of this "secondary internal" IP address 127.0.0.2 (compared to 127.0.0.1), please tell me. Is it because of the second domain? What does this do?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

  9. bobpit

    bobpit Member

    I tried this and it worked. Thanks!
    Code:
    [B]127.0.0.2 server1[/B]
    127.0.0.1 localhost.localdomain localhost
    # Auto-generated hostname. Please do not remove this comment.
    192.210.214.129 server1.surf-anonymous.info  server1
    ::1 localhost.localdomain localhost
     

Share This Page