Does /var/log/maillog show any other information around the time of the failed Nagios notification?
only this:
Code: Select all
unknown; sleeping for retry
Jun 6 10:41:01 backups sm-msp-queue[9722]: unable to qualify my own domain name (localhost) -- using short name
Jun 6 11:00:02 backups sm-msp-queue[10797]: My unqualified host name (localhost) unknown; sleeping for retry
Jun 6 11:01:02 backups sm-msp-queue[10797]: unable to qualify my own domain name (localhost) -- using short name
Jun 6 11:20:01 backups sm-msp-queue[11962]: My unqualified host name (localhost) unknown; sleeping for retry
Jun 6 11:21:01 backups sm-msp-queue[11962]: unable to qualify my own domain name (localhost) -- using short name
Jun 6 11:40:01 backups sm-msp-queue[13053]: My unqualified host name (localhost) unknown; sleeping for retry
Jun 6 11:41:01 backups sm-msp-queue[13053]: unable to qualify my own domain name (localhost) -- using short name
Jun 6 12:00:01 backups sm-msp-queue[14367]: My unqualified host name (localhost) unknown; sleeping for retry
Jun 6 12:01:01 backups sm-msp-queue[14367]: unable to qualify my own domain name (localhost) -- using short name
Jun 6 12:20:01 backups sm-msp-queue[15849]: My unqualified host name (localhost) unknown; sleeping for retry
and if i try to send emails with the command:
Code: Select all
echo "test" | mail -s "test mail" alessio.coli@deaconsulenze.eu"
i have this in mail.log:
Code: Select all
Jun 6 10:36:38 backups sendmail[9451]: s568acQu009451: from=nagios, size=96, class=0, nrcpts=1, msgid=<201406060836.s568acQu009451@localhost>, relay=nagios@localhost
Jun 6 10:36:38 backups sm-mta[9481]: s568acms009481: from=<nagios@localhost>, size=330, class=0, nrcpts=1, msgid=<201406060836.s568acQu009451@localhost>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Jun 6 10:36:38 backups sendmail[9451]: s568acQu009451: to=<alessio.coli@deaconsulenze.eu>, ctladdr=nagios (1006/1006), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30096, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (s568acms009481 Message accepted for delivery)
Jun 6 10:36:38 backups sm-mta[9483]: STARTTLS=client, relay=intra.deaconsulenze.eu., version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-AES256-SHA, bits=256/256
Jun 6 10:36:39 backups sm-mta[9483]: s568acms009481: to=<alessio.coli@deaconsulenze.eu>, ctladdr=<nagios@localhost> (1006/1006), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=120330, relay=intra.deaconsulenze.eu. [144.76.118.183], dsn=2.0.0, stat=Sent (Ok: queued as 6C24520BB4)
sending emails with telnet:
Code: Select all
root@backups:~# telnet intra.deaconsulenze.eu 25
Trying 144.76.118.183...
Connected to intra.deaconsulenze.eu.
Escape character is '^]'.
220 intra.deaconsulenze.eu ESMTP Postfix (Debian/GNU)
HELO backups
250 intra.deaconsulenze.eu
MAIL FROM:nagios@backups
250 2.1.0 Ok
RCPT TO:alessio.coli@deaconsulenze.eu
250 2.1.5 Ok
DATA
354 End data with <CR><LF>.<CR><LF>
SUBJECT:test email
test
.
250 2.0.0 Ok: queued as 6B2EE208EB
and the mail arrives to my account...