LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-09-2012, 09:01 AM   #1
ShaneW
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, 10:33 AM   #2
ShaneW
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:

<xxxx@xxxx.com>: host mail.xxxxxx.com[xxx.xxx.xx.xx] said:
550-Verification failed for <nagios@nagios.xxxxx.net> 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, 03:20 PM   #3
YankeePride13
Member
 
Registered: Aug 2012
Distribution: Ubuntu 10.04, CentOS 6.3, Windows 7
Posts: 262

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


Reply


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 05:02 AM
Sendmail (mailserver) -- sending mail with the mail command -- doesn't work :-( carolinevdh Linux - Server 1 08-13-2009 10:43 PM
Mailserver sending but not sending mail from outside. simango Linux - Newbie 1 10-28-2008 09:51 AM
sending mail from console - DNS issues noir911 Linux - Server 3 09-04-2008 01:48 AM
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 12:16 PM


All times are GMT -5. The time now is 08:26 PM.

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