Mail FROM field needs to be changed

Val Vechnyak val at nycity.com
Fri Apr 18 23:07:19 CEST 2003


Yes, I have domain masquerading setup.

 

The problem seems to have something to do with sendmail not talking
correctly to domino MTA.  Maybe it is the same problem that used to be in
beta version of plugins when check_smtp did not issue a QUIT.

 

----------------------------------------------------------------------------

Val Vechnyak

 

 

 

-----Original Message-----
From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] 
Sent: Friday, April 18, 2003 15:29
To: 'Val Vechnyak'; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Mail FROM field needs to be changed

 

You may have tweaked your pine config to force the FROM address.

 

As for sendmail, depending on what version of sendmail you're running, it
could be a simple tweak.  Edit /etc/sendmail.cf and search for 'masquerade'
or '^DM' (without the quotes) and change accordingly.  Here's a sample tweak
from my sendmail.cf file for one of my Linux hosts (lines 138-139) running
sendmail version 8.11.6:

 

# who I masquerade as (null for no masquerading) (see also $=M)
DMsprintspectrum.com

HTH.

 

jc

 

-----Original Message-----
From: Val Vechnyak [mailto:val at nycity.com]
Sent: Friday, April 18, 2003 1:21 PM
To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Mail FROM field needs to be changed

Ummmmm, You are right. My bad. That's embarrassing.

 

 It works using PINE, but not from the command line.

 

Don't know what is going on. Thanks and sorry I took your time.

 

----------------------------------------------------------------------------

Val Vechnyak

MCP

 

Technical support: support at msohosting.com

 

-----Original Message-----
From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] 
Sent: Friday, April 18, 2003 13:23
To: 'Val Vechnyak'; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Mail FROM field needs to be changed

 

I'm not convinced that your sendmail config is blameless.  Try the
following:

 

# su - nagios

$ echo 'hello' | /usr/lib/sendmail 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).
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, 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/c6beaf68/attachment.html>


More information about the Users mailing list