How to change the return e-mail address used by AlarmNotifier e-mail notification (Legacy KB ID CNC TS33404 )

Document ID : KB000051828
Last Modified Date : 14/02/2018
Show Technical Document Details
Related Issues/Questions:
How to change the return e-mail address used by AlarmNotifier e-mail notification

Problem Environment:
Spectrum 08.01.00.00
Spectrum 09.00.00.00
AlarmNotifier
E-Mail
mail
mailx
Out of the box, AlarmNotifier uses the mail program for Windows and Linux and mailx for Solaris
To change the return e-mail address used by mail on Windows, the user can do one of two things:


1. Change the username and/or hostname parameters for SMail in the registry. This can be done using regedit, searching for SMail and manually changing the username and/or hostname parameters. You can also use the mail utility to change the username and/or hostname parameters as outline in the AlarmNotifier User Guide under Configure Mail Service.


2. Modify the AlarmNotifier scripts and add the "-u" parameter to the mail command used to send out the e-mail notification.


For example:


$MAIL -s "A $SEV alarm has occurred on $SERVER (Model Name=$MNAME)(Model Type=$MTYPE)" -u myaddress@domain.com $RCVRS < /tmp/set_alarm.$PID


By default, the mail program on Linux uses the username of the user running the program as the return e-mail address. In this instance, it would be the user running the AlarmNotifier scripts. To change the return e-mail address, the user can modify the AlarmNotifer scripts and add the "-u" parameter to the mail command used to send out the e-mail notification.


For example:


$MAIL -s "A $SEV alarm has occurred on $SERVER (Model Name=$MNAME)(Model Type=$MTYPE)" -u myaddress@domain.com $RCVRS < /tmp/set_alarm.$PID


By default, the mailx program on Solaris uses the username of the user running the program as the return e-mail address. In this instance, it would be the user running the AlarmNotifier scripts. To change the return e-mail address, the user can modify the AlarmNotifer scripts and add the "-r" parameter to the mail command used to send out the e-mail notification.


For example:


$MAIL -s "A $SEV alarm has occurred on $SERVER (Model Name=$MNAME)(Model Type=$MTYPE)" -r myaddress@domain.com $RCVRS < /tmp/set_alarm.$PID



Additional Information:
Depending on the configuration of the smtp server, the return e-mail address may have to be a recognized and pre-configured valid e-mail address. If not, the smtp server may reject the e-mail. Please refer to your local smtp configuration.


(Legacy KB ID CNC TS33404 )