Technical data

Configuring and Managing SMTP
17.2 Configuring SMTP
17.2.2 Creating a Postmaster Account
The postmaster account is a required account that receives all undeliverable mail.
The SMTP process runs under user account TCPIP$SMTP. Compaq recommends
that you do not change this account.
SMTP requires that the system be able to receive mail addressed to the user
name POSTMASTER. Set OpenVMS Mail to forward the mail addressed to
POSTMASTER to the SYSTEM account. For example:
$ SET PROC/PRIV=SYSPRV
$ MAIL
MAIL> SET FORWARD/USER=POSTMASTER SYSTEM
MAIL> SET FORWARD/USER=TCPIP$SMTP SYSTEM
MAIL> SET FORWARD/USER=UCX_SMTP SYSTEM
This ensures that mail messages that could be neither delivered nor bounced
back to the sender are sent to the SYSTEM user (usually the system manager).
You can modify the
From:
address on undelivered mail by specifying a user name
as the value for the following logical name:
$ DEFINE /SYSTEM TCPIP$SMTP_POSTMASTER_ALIAS user-name
In this example, user-name is the user name without the domain portion of the
address. For more information, see Section 17.5.
By default, undelivered mail bears the following
From
address:
TCPIP$SMTP@node.domain
17.3 Creating a Local Alias File
You can used a local alias to define a list of domains that SMTP will interpret
as local. If SMTP receives mail for any of the domains specified as local aliases,
it will deliver the mail on the local system using OpenVMS Mail rather than
forward it on to another system.
This is useful in an OpenVMS Cluster environment, where you want mail sent
to any of the cluster hosts to be delivered locally rather than take the extra step
of relaying it from one cluster node to another. It is also useful if you want to
set up your OpenVMS host to receive inbound mail either for different domains
unrelated to the actual domain of your host or for alias names of your host.
For example, if your host was
a.b.com
and you had entries for
x.y.com
and
y.z.com
in your local alias file, any mail to
x.y.com
and
y.z.com
would be
delivered locally on your host. (To implement this fully, set up DNS MX records
so that mail to the
x.y.com
and
y.z.com
domains is routed to your host.) For
more information about setting up DNS records, see Chapter 5.
To define a list of domains that SMTP interprets as local:
1. Create the file TCPIP$SMTP_LOCAL_ALIASES.TXT.
2. Include a list of domain names that are to be recognized as local. The domain
names should have a maximum of 64 characters with one line per name, up
to a maximum of 255 names. For example:
Configuring and Managing SMTP 17–7