How to change the return e-mail address used by Spectrum AlarmNotifier e-mail notification.
Spectrum 10.x
Out of the box, AlarmNotifier uses the mail program for Windows and Linux and mailx for Solaris
WINDOWS:
To change the return e-mail address used by mail on Windows, the user can do one of two things:
$MAIL -s "A $SEV alarm has occurred on $SERVER (Model Name=$MNAME)(Model Type=$MTYPE)" -u [email protected] $RCVRS < /tmp/set_alarm.$PID
LINUX:
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 "-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 [email protected] $RCVRS < /tmp/set_alarm.$PID
SOLARIS:
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 [email protected] $RCVRS < /tmp/set_alarm.$PID
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.