HP XC System Software Installation Guide Version 3.1

sendmail Configuration Requirements on an HP XC System
Although Linux sendmail typically functions correctly as shipped, current XC host naming conventions
cause sendmail to improperly identify itself to other mail servers. This improper identification can lead
to the mail being rejected by the remote server.
To remedy this issue, perform the following procedure on all nodes with an external connection that will
send mail:
1. Be sure you know the fully qualified host name associated with the node's external IP address.
2. On the head node, add an entry for the IP address and fully qualified host name to the top of the
/etc/hosts file. Make the entry above the comment #XC-CLUSTER Do Not Edit Below this
Line. An entry is similar to the following:
192.0.2.3 penguin.southpole.com
In the previous example, penguin.southpole.com is the fully qualified host name, and 192.0.2.3
is its external IP address.
3. Save your change and exit the file.
4. Use the text editor of your choice to open and edit the following file:
/etc/mail/submit.cf
5. Locate the section of the file that is similar to this:
# my official domain name
# ... define this only if sendmail cannot automatically determine your
domain
#Dj$w.Foo.COM
6. Uncomment the macro and include the fully qualified host name. The entry is similar to this for
penguin.southpole.com:
Djpenguin.southpole.com
7. Save your change and exit the file.
8. Use the text editor of your choice to open and edit the following file:
/etc/mail/sendmail.cf
9. Repeat steps 5 and 6 to make the same changes to this file.
10. Save your change and exit the file.
11. Restart sendmail:
# service sendmail restart
To forward mail to users, the sendmail service requires users to create .forward files in their home
directories to specify where mail is to be sent.
If you intend to make additional, more advanced modifications to sendmail, HP recommends that you
do not modify the .cf files directly. Rather, modify the .mc files and run them through an M4 processor
to create the .cf files. The M4 processing tools are part of the sendmail-cf RPM, which is not installed
by default. The sendmail-cf RPM is available on the HP XC distribution DVD in the extra RPMs directory.
Consult any third-party Linux system administration reference manual if you need more information
about configuring sendmail.
To use a mail program other than sendmail, set the LSB_MAILPROG variable in the
/opt/hptc/lsf/top/conf/lsf.conf file to the appropriate mail program after the system configuration
is complete.
60 Configuring and Imaging the System