We have configured notification policy in TrueSight Admin console but we are not receiving email notification even though exit code is 0 in MC_ACTION_RESULT event and we also see list of email recipients in mc_operations slot of event.
One more thing, we are able to received MFD reports generated by TrueSight and along with test emails generated with email.sh or pw test_email command and problem is only with Notification policy.
First thing to check is if notification source is set in Notification policy and after this check if SMTP server details are configured in operating system configuration, this can be confirmed by manually sending test emails with below commands.
1) Navigate to %MCELL_HOME%\etc\<cell_name>\kb\bin\w4 directory.
> smail.exe "email" -t " <recipient’s email_address> " -s " test smail " -body "This is Email body"
Note: Make sure leading and trailing space is given for email address in -t flag.
> mail -s "Test Subject" <recipient’s email_address> < /dev/null
If no email is received with above command then its possible that SMTP server details are not stored in Operating System and it should be registered manually with below procedure.
For Windows use one of below methods:
1) Navigate to %MCELL_HOME%\etc\<cell_name>\kb\bin\w4 directory and execute below command.
> smail -install <server address> <sender's address>
2) User Remote action "Setup Sending SMTP E-mails - Windows Only " in TrueSight/ProactiveNet Operation console.
For Linux, It is recommended to take assistance from Linux Administrator as the procedure to register SMTP server depends on various factor.
Note: There is a different mechanism used by BPPM/TrueSight to send emails notification for TrueSight reports or with pw test_email command, it uses Java libraries to generate email notification and retrieves SMTP server details from following properties in pronet.conf file located under pw\custom\conf directory.
Whereas, Cell based Notification policy uses mc_sendmail utility and retrieves SMTP server setting from OS configuration files.
In Linux, it retrieves SMTP server details from one of below configuration files or the configuration files depends on method used for exchange server integration.
In Windows, it retrieves SMTP server details one of following Windows registry paths depending on Windows OS version.
1) HKEY_LOCAL_MACHINE\SOFTWARE\Public Domain\Blat
2) HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Public Domain\Blat