Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-09-2012, 08:01 AM   #1
LQ Newbie
Registered: Sep 2012
Posts: 2

Rep: Reputation: Disabled
Mail sending issues

Hi Guys

I need some help please...

My Linux experiance is very minimal. I took over monitoring of a network about a year ago which uses the Nagios system. Everything has been working perfectly and I've done a number of changes within Nagios and its hosts.

Heres the problem... We recently moved the hosting of our domains to a different company. After moving the Nagios email notifications also stopped. I have realised that the domain that the Nagios was emailing from was not moved over and since it was only being used by the nagios it has been tossed. I now need to setup the mail to mail me from a new email address for notifications.

Unfortunitely I do not know enough about the linux email system to do changes.

The email commands in Nagios looks like this:

command[notify-by-email]=/bin/printf "$OUTPUT$" | /bin/mail -s '$SERVICESTATE$ alert for $HOSTALIAS$/$SERVICEDESC$' $CONTACTEMAIL$

command[host-notify-by-email]=/bin/echo -e "***** Nagios *****\n\nHost "$HOSTALIAS$" is $HOSTSTATE$!\n\nDate/Time: $DATETIME$\n" | /bin/mail -s 'Host $HOSTNAME$ is $HOSTSTATE$!' $CONTACTEMAIL$

So from this it seems that it is using the /bin/mail app to send the mails, so how do I edit the originating email address & password?

Thanks in advance...
Old 09-09-2012, 09:33 AM   #2
LQ Newbie
Registered: Sep 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
on further investigation I found a log file (nagios) that contains all the unsent mails in /var/spool/mail/ all the mails have returned with the following error:

<>: host[] said:
550-Verification failed for <> 550-Unrouteable
address 550 Sender verify failed (in reply to MAIL FROM command)

So it seems that the mail is actually going out but being rejected by the recipient server??? Am I correct in thinking this?

And how do I remedy this?
Old 09-11-2012, 02:20 PM   #3
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

Rep: Reputation: 55
Does your mail server have a valid PTR record? Also do you have SPF records?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] issues with sending mail from a nologin user sathish167 Linux - Newbie 2 09-02-2010 04:02 AM
Sendmail (mailserver) -- sending mail with the mail command -- doesn't work :-( carolinevdh Linux - Server 1 08-13-2009 09:43 PM
Mailserver sending but not sending mail from outside. simango Linux - Newbie 1 10-28-2008 08:51 AM
sending mail from console - DNS issues noir911 Linux - Server 3 09-04-2008 12:48 AM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 11:16 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration