How to change the return e-mail address used by Spectrum AlarmNotifier e-mail notification

book

Article ID: 51828

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

How to change the return e-mail address used by Spectrum AlarmNotifier e-mail notification.

Environment

Spectrum 10.x

Resolution

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:

  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 [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 "-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 [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

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.