Mail FROM field needs to be changed

Carroll, Jim P [Contractor] jcarro10 at sprintspectrum.com
Fri Apr 18 19:22:33 CEST 2003


I'm not convinced that your sendmail config is blameless.  Try the
following:
 
# su - nagios
$ echo 'hello' | /usr/lib/sendmail val at nycity.com <mailto:val at nycity.com> 
 
Let us know what the FROM header looks like on the receiving end.
 
jc
 

-----Original Message-----
From: Val Vechnyak [mailto:val at nycity.com]
Sent: Friday, April 18, 2003 10:15 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Mail FROM field needs to be changed



Hello,

 

I apologize if this was discussed already in this list, but since I just
signed up I did not know.

 

My problem is when nagios is sending email notifications it includes the
entire hostname in MAIL FROM field (i.e. nagios at hostname.domainname.com
<mailto:nagios at hostname.domainname.com> ). There is no problem when I send
an email using PINE from nagios user, so my sendmail is configured properly.

 

This is a problem for me because some email servers lookup the MX record of
the domain name and refuse email if it does not match.

 

ADMINEMAIL in nagios.cfg is nagios at myrealdomainname.com
<mailto:nagios at myrealdomainname.com> , but nagios still puts the hostname in
the FROM field.

 

Could anyone tell me where I can configure it?

 

Thanks,

 

Val

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030418/98008cb6/attachment.html>


More information about the Users mailing list