Configuring and Managing MPE/iX Internet Services (August 2002)

Chapter 10
Sendmail for MPE/iX
Configuring Sendmail
194
Configuring Sendmail
The syslog daemon must be configured to log mail events before you attempt to run Sendmail. The FOS syslog
daemon configuration file is /SYSLOG/PUB/syslog.conf, and the syslog daemon is started by streaming
/SYSLOG/PUB/JSYSLOGD. The default syslog.conf file will log Sendmail messages to /tmp/syslog.log.
Sendmail uses two configuration files æ /etc/mail/submit.cf when a user on the local machine is
submitting a new e-mail message, and /etc/mail/sendmail.cf for all other functions including the mail
daemon. These *.cf configuration files are generated from several *.mc macro files which are expanded by the
m4 macro processor program.
If you only need to make simple configuration changes such as uncommenting a statement or changing an
existing statement parameter, you can edit the *.cf files directly. But if you are adding major new
functionality, you will need to regenerate the *.cf files from the *.mc files. It is good Sendmail practice to
ALWAYS make configuration changes by editing the *.mc files and then expanding them into their *.cf form.
To regenerate /etc/mail/submit.cf:
1. :HELLO SERVER.SENDMAIL
2. :XEQ SH.HPBIN.SYS -L
3. shell/iX> cd /SENDMAIL/CURRENT/cf/cf
4. shell/iX> cp submit-mpeix.mc.sample submit-mpeix.mc
5. Edit submit-mpeix.mc with the bytestream file editor (i.e., vi) of your choice to make your changes.
6. shell/iX> m4 ../m4/cf.m4 submit-mpeix.mc >submit-mpeix.cf
7. shell/iX> cp submit-mpeix.cf /etc/mail/submit.cf
To regenerate /etc/mail/sendmail.cf:
1. :HELLO SERVER.SENDMAIL
2. :XEQ SH.HPBIN.SYS -L
3. shell/iX> cd /SENDMAIL/CURRENT/cf/cf
4. shell/iX> cp generic-mpeix.mc.sample generic-mpeix.mc
5. Edit generic-mpeix.mc with the bytestream file editor (i.e., vi) of your choice to make your changes.
6. shell/iX> m4 ../m4/cf.m4 generic-mpeix.mc >generic-mpeix.cf
7. shell/iX> cp generic-mpeix.cf /etc/mail/sendmail.cf
The default copy of /etc/mail/sendmail.cf assumes that your local machine will be delivering e-mail
directly to the recipients mail server. If you instead need to relay all of your outbound e-mail through a
central relay server, you can simply edit /etc/mail/sendmail.cf to specify the relay host name, i.e.,:
# "Smart" relay host (may be null)
DSmy.relay.host.name
Alternatively you can modify the generic-mpeix.mc file as shown below and then rebuild the sendmail.cf file
as explained previously:
define(SMART_HOST, my.relay.host.name)