Using mailx for peer review notifications
search cancel

Using mailx for peer review notifications

book

Article ID: 249911

calendar_today

Updated On:

Products

CA Harvest Software Change Manager CA Harvest Software Change Manager - OpenMake Meister

Issue/Introduction

In reading the instructions for Configuring Peer Review Notifications the example settings demonstrate using hsmtp to send the notification emails.  We prefer to use mailx for this.  Is there a way to configure this feature to use mailx instead of hsmtp?

 

Environment

Harvest Software Change Manager v14.0 and up
Unix and Linux operating systems

Resolution

Started with getting the notification UDPs to work.  For RHEL 8.x there’s a trick found in this KB article:

Notification Error

We created the script it describes. Here is what the /opt/CA/scm/bin/mailx script looks like: 

[<user>@<hostname> bin]$ cat mailx
#!/bin/bash
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
/usr/bin/mailx "$@"
# end of script

With this in place, notification UDPs now work in Harvest.  

The -premail= option within the HServer.arg file can take either of these forms:

-premail="/opt/CA/scm/bin/mailx -r <reply-to email address>"

or (if the reply-to email address is included in the configuration settings for mailx)

-premail="/opt/CA/scm/bin/mailx"

Here is an example of the -premail option line that can be used in /opt/CA/scm/HServer.arg:

[<user>@<hostname> scm]$ cat HServer.arg
// HServer args for CA Harvest SCM v13
-broker=<brokername>
-datasource=<datasource>
-authmode=internal
-fipsmode=0
-premail="/opt/CA/scm/bin/mailx -r <reply-to email address>"

Additional Information

More information on administering and configuring the Peer Review feature can be found here: Administrate Peer Reviews

In particular, the information on Peer Review Notifications is at the bottom of this page under the heading "Configure Peer Review Notification"