The email sent by the AlarmNotifier by the sendmail (Spectrum in Linux), has the root account as the sender. How to change it to spectrum, or any other user/id?
DX NetOps Spectrum all currently supported releases on Linux OS
Modifiy the SetScript as follows by adding the -S
flag with the from
header = your server's email address. For example:
$MAIL -S [email protected] -s "A $SEV alarm has occurred on $SERVER (Model Name=$MNAME)(Model Type=$MTYPE)" $RCVRS < /tmp/set_alarm.$PID
If the email alerts from AlarmNotifier arrive with the Sender field showing an incorrect address, then check in the /var/log/messages
file for any messages relating to mail. If it shows the output correctly, for example:
Apr 20 12:00:03 OUR_SERVER postfix/qmgr[2937863]: 6CBEA61E8B5E: from=<username@OUR_SERVER.domain.com>, size=944, nrcpt=1 (queue active)
Then the issue is not with the Spectrum Application (AlarmNotifier) as the above shows the correct from (sender) address. Instead, the issue will be with the SMTP mail server.