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

Chapter 10
Sendmail for MPE/iX
Configuring Sendmail
195
In addition to the *.cf configuration files, some Sendmail features require the use of additional configuration
files known as database maps. Database maps consist of ASCII key/value pairs that have been compiled into
a binary database format. Maps are created by the makemap command, and can be modified by the
editmap command. For example:
1. :HELLO SERVER.SENDMAIL
2. :XEQ SH.HPBIN.SYS -L
3. shell/iX> /bin/cat - >/etc/mail/access
imaspammer.com REJECT
:EOD
4. shell/iX> makemap hash /etc/mail/access </etc/mail/access
An ASCII file called /etc/mail/access is created with an entry that tells Sendmail to reject all e-mail sent
from the imaspammer.com domain. The makemap command is then used to read this ASCII file from stdin
via I/O redirection. The first parameter of makemap describes the database format to be used (Berkeley DB
hash or btree), and the second parameter is the name of the binary output file that will be created after .db
is appended to the name.
It is important to note that while /etc/mail/sendmail.cf will refer to the ASCII database file name (i.e.,
/etc/mail/access), Sendmail will actually be reading the data from the binary database filename (i.e.,
/etc/mail/access.db). So whenever you make a change to ASCII database map file data, you must run
makemap to create the binary database *.db file, and then restart Sendmail for the changes to be visible.
For more details about database maps, please see man makemap and man editmap.
Starting the Mail Daemon
Make sure that a syslog daemon is running before you start the mail daemon. To start the FOS syslog
daemon, :STREAM JSYSLOGD.PUB.SYSLOG.
Simply :STREAM JDAEMON.PUB.SENDMAIL to start the mail daemon.
Stopping the Mail Daemon
The following command performed in the POSIX shell while logged on to SERVER.SENDMAIL or any SM
user will stop the mail daemon job:
kill $(head -n 1 /etc/mail/sendmail.pid)