Previous | Contents | Index |
To forward mail for a few selected users, use the alias file. If,
however, you will be doing this for several thousand users, then use
the alias database. The difference between the two is that the alias
file is loaded into memory while the alias database, intended for large
numbers of aliases, is not. The alias database is a keyed, indexed file
and has excellent performance even when it contains over a hundred
thousand aliases.
On OpenVMS systems, the database is an RMS keyed, indexed file, and may
be tuned with RMS tuning tools, if necessary.
Suppose you want to forward mail for the two local users Judy.Public
and jdoe
to, respectively, pjudy@vaxa.example.com
and johndoe%a1@mr.xyzzy.org
. To do this with the alias file you would simply add to the PMDF alias
file, the two entries
Judy.Public: pjudy@vaxa.example.com jdoe: johndoe%a1@mr.xyzzy.org |
To add these two entries to your alias database you should locate the source file used to generate that database, add these two entries to that file, and then regenerate the database with the PMDF CRDB
(OpenVMS) or pmdf crdb
(UNIX and NT) utility. There is no need to recompile your configuration
after making changes to the alias database. However, resident servers
(such as the PMDF SMTP server) may need to be restarted if you want
them to see the change immediately.
On OpenVMS or UNIX systems, you may instead add these entries to the alias database using the PMDF DB
(OpenVMS) or pmdf db
(UNIX) utility. See the appropriate edition of the PMDF User's Guide for
more details.
There are several points that you should note:
IN%JDOE:
$ MAIL MAIL> SET FORWARD/USER=JDOE IN%JDOE MAIL> EXIT $ |
Judy.Public
will match judy.public
, JUDY.PUBLIC
, JuDy.PUBlic
, etc.
aliaslocal
channel keyword. They do not apply to arbitrary addresses, such as in messages passing through your system for a different host (unless that host is handled by a PMDF channel marked aliaslocal
).
To:
address. The message header will not be rewritten; i.e., the
alias will not be expanded into the message header.
johndoe%a1@xyzzy.org
will not have that address magically replaced with the alias jdoe@local-host
. The ability to do this is, however, very useful and may be accomplished with the address reversal database or REVERSE
mapping. If you want to do this, then refer to Section 3.6.
Previous | Next | Contents | Index |