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

Chapter 10
Sendmail for MPE/iX
The Aliases Database Map and .forward Files
201
This will cause Sendmail to deliver one copy of an email message to the users normal mailbox
(\USER.ACCOUNT), and another copy of an email message will be piped to the Sendmail vacation
autoresponder program.
Access_db Feature
The access database map allows you to accept or reject e-mail based on the message envelope and connecting
mail server host name. 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
This will reject all e-mail originating from the domain imaspammer.com.
For more information about the access_db feature, please see /SENDMAIL/CURRENT/cf/README.
Domaintable Feature
The domaintable database map is used to rewrite domain names in e-mail headers. You might find this useful
if your company was acquired by a different company and you were forced to change your email domain
names. For example:
1. :HELLO SERVER.SENDMAIL
2. :XEQ SH.HPBIN.SYS -L
3. shell/iX> /bin/cat - >/etc/mail/domaintable
oldcompany.com newcompany.com
:EOD
4. shell/iX> makemap hash /etc/mail/domaintable </etc/mail/domaintable
All occurrences of oldcompany.com in e-mail headers would be rewritten to newcompany.com.
For more information about the domaintable feature, please see /SENDMAIL/CURRENT/cf/README.
Genericstable Feature
The genericstable database map is used to rewrite both the user and domain portions of e-mail addresses in
outgoing e-mail headers. For example:
1. :HELLO SERVER.SENDMAIL
2. :XEQ SH.HPBIN.SYS -L
3. shell/iX> /bin/cat - >/etc/mail/genericstable
USER.ACCOUNT@my.local.host customer_servce@company.com
:EOD
4. shell/iX> makemap hash /etc/mail/genericstable </etc/mail/genericstable
All e-mail sent by USER.ACCOUNT on the local host my.local.host would have the sender address(es)
rewritten as customer_service@company.com. Note that domains being modified by genericstable must be
added to /etc/mail/sendmail.cf class {G}.