[clug] [PMX:#] Sendmail config - PLEASE help!!

Andrew Smith andrew at coolchilli.com
Fri Aug 27 05:48:15 GMT 2004


Yeah it should just work.  Perhaps sendmail can't work out your hostname?  I don't think it simply runs the hostname command to find
it.  Do a "dig a nagios_server.industry.gov.au" and "dig ptr -x <nagios IP>" to see what lines up against the hostname and IP
address.  If you can change the DNS records, then see if that helps.

Otherwise, check /etc/hosts and perhaps change the order for hosts against to " nagios_server.industry.gov.au
localhost localhost.localdomain"

As a last resort, set a masquerade option.  It's recommended to work from mc files these days (helps when upgrading and it's
easier).  Add this to your sendmail.mc file and run m4 to generate sendmail.cf


Good luck

> -----Original Message-----
> From: linux-bounces+andrew=coolchilli.com at lists.samba.org
> [mailto:linux-bounces+andrew=coolchilli.com at lists.samba.org]On Behalf Of
> Collins, Steve
> Sent: Friday, 27 August 2004 3:13 PM
> To: linux at lists.samba.org
> Subject: [clug] [PMX:#] Sendmail config - PLEASE help!!
> I have a server which knows it's name:
> [root at nagios_server mail]# hostname
> nagios_server.industry.gov.au
> Yet everything coming out of sendmail sends as, for example, nagios at localhost.localdomain.
> What I'd like to do is have mail come out as someuser at industry.gov.au.  Any change I make to sendmail doesn't seem to
> have any affect.  I've set the DM/CM config on the box to cover all of the variants I can think of:
> DMindustry.gov.au
> CMlocalhost
> CMlocalhost.localdomain
> CMnagios_server.industry.gov.au
> Nothing seems to make any difference.
> Any advice MORE than welcome at this (frustrated) point.
> Steve
> --
> Stephen Collins
> Web Development Section
> eBusiness Division
> __________________________________________________
> Department of Industry, Tourism and Resources
> Level 12, 20 Allara Street, Canberra City ACT 2600
> GPO Box 9839, Canberra ACT 2601
> E steve.collins at industry.gov.au
> P +61 2 62137193
> C +61 410 680722
> F +61 2 62136227
> **********************************************************************
> The information contained in this e-mail, and any attachments to it, is
> intended for the use of the addressee and is confidential. If you are not the intended recipient you must not use,
> disclose, read, forward, copy or retain any of the information. If you have received this e-mail in
> error, please delete it and notify the sender by return e-mail or telephone.
> The Commonwealth does not warrant that any attachments are free from viruses or any other defects. You assume all
> liability for any loss, damage or other consequences which may arise from opening or using the attachments.
> ***********************************************************************************

More information about the linux mailing list