Off topic question - how to change domain name in sendmail.

Marcus Nilsson Marcus.Nilsson at Cannondale.com
Thu Nov 7 12:01:36 CET 2002


That gives me: 
mail: invalid option -- a

Are You sure you used the -a option with mail(x) ?

/ Marcus

-----Original Message-----
From: Greg Vickers [mailto:g.vickers at qut.edu.au]
Sent: Thursday, November 07, 2002 1:24 AM
To: Marcus Nilsson
Subject: Re: [Nagios-users] Off topic question - how to change domain
name in sendmail.


Marcus,

I used exim as my MTA with nagios:

in exim.conf;
trusted_users=mail:nagios

in host_notify_by_email.command.cfg;
printf "Blah-de-blah-de-blah" | mail -s "serverdown,serverdown" 
$CONTACTEMAIL$ -a "From: nagiosadmin at your.domain.here"

This probably doesn't help with sendmail, but it's a start.

GV

At 18:55 07/11/2002, you wrote:
>Hi all.
>I want to change the domain name of the mail that is sent out by nagios. It
>now looks like this: nagios at felix.cannonale.com , I want it to look like
>nagios at cannondale.com. I have tried changing /etc/HOSTNAME to
cannondale.com
>instead of felix.cannondale.com, that gave me a mail from nagios at cannondale
>(without the .com). I also tried hacking sendmail.cf like this (I am not
>certain this is the right way):
>
>Cwcannodale.com
>Dj$cannondale.com
>
>This did not do any difference.
>
>I have seen someone telling how to do this in this mailing list before but
>after a search I could not find it.
>
>I realize this is basically not a question for this mailing list but I have
>been unable to get a good answer from any other place.
>
>Thanks in advance.
>
>Marcus
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by: See the NEW Palm
>Tungsten T handheld. Power & Color in a compact size!
>http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
>_______________________________________________
>Nagios-users mailing list
>Nagios-users at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/nagios-users

=================================
Greg Vickers
Computer Systems Officer
Student Support and Systems,
Teaching and Learning Support Systems,
Queensland University of Technology,
Kelvin Grove Campus,
Brisbane,
Australia

CRICOS No 00213J

Ph: 07 3864 8276 Fax: 07 3864 5425
Mob: 0416 001 674 SD: x6147


-------------------------------------------------------
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power & Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en




More information about the Users mailing list