Hi. This is the qmail-send program at mail.domain.com
I’m afraid I wasn’t able to deliver your message to the following addresses.
This is a permanent error; I’ve given up. Sorry it didn’t work out.
<** PROBLEM alert - Cusomter Email/POP3 is CRITICAL **@mail.domain.com>:
Sorry, no mailbox here by that name. (#5.1.1)
— Below this line is a copy of the message.
Return-Path: [email protected]
Received: (qmail 932 invoked by uid 511); 12 May 2005 12:28:20 -0500
Date: 12 May 2005 12:28:20 -0500
Message-ID: [email protected]
From: [email protected]
Cc: recipient list not shown: ;
I suppose you changed the email address…
Any way check that the **@mail.domain.com address exists AND that the domain is NOT defined as an inbound domain on the nagios server, in this case it would try a local delivery and not having the mailbox return an error.
You have messed up your .cfg file.
This is the definition in misccommands.cfg
define command{
command_name notify-by-email
command_line /usr/bin/printf “%b” “***** Nagios ***\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$" | /bin/mail -s " $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **” $CONTACTEMAIL$ }
As you can see, the person that the email will be sent to is $CONTACTEMAIL$
Contacts.cfg has the definced contacts and there respective email address’. Hostgroups.cfg has the host group that the host belongs in.
Double check your syntax in misccommands.cfg and try to send yourself an email by command line, by using the same syntax.