Mail from nagios@host vs [email protected]
Posted: Fri Nov 26, 2010 11:46 am
So I have my nagios installs working fine and dandy, however I cannot send to users on remote servers. The reason is because when nagios sends to a remote user, the from field is "nagios@host" instead of a FQDN. I looked at commands.cfg and see how it calls mail, but there is no flag to pass to mail to set the from field. It looks like in prior versions there was a way to set it by overwriting a header (with "-a "From: [email protected]"), but the version I have doesn't allow that (I am using CentOS 5.5).
So when nagios sends to users on the same server, they come through as [email protected] as they should, but when it tries to send to remote servers it just comes from nagios@host and is rejected by the remote server! Any ideas on how to set the from field or make it think the host is the FQDN and not just the hostname?
So when nagios sends to users on the same server, they come through as [email protected] as they should, but when it tries to send to remote servers it just comes from nagios@host and is rejected by the remote server! Any ideas on how to set the from field or make it think the host is the FQDN and not just the hostname?