The first step in installing the directory channel is to add the channel entry towards the bottom of your PMDF configuration file. The entry should be of the form:
directory DIRECTORY-DAEMONRewrite rules of the form
domain $U%domain@DIRECTORY-DAEMONshould also be added towards the top of your PMDF configuration file to map each pseudo domain
domain
supported onto the
directory channel. For example, if acme.com and a1.acme.com are pseudo
domains to be handled by the directory channel, rewrite rules of the
form:
acme.com $U%acme.com@DIRECTORY-DAEMON a1.acme.com $U%a1.acme.com@DIRECTORY-DAEMONshould be used.
More than one pseudo domain can be accommodated by the same directory channel; in general, there is no need to have separate channels for each domain. Simply add additional rewrite rules for any new pseudo domains and configure them as the following sections describe.
Alternatively, separate directory_* channels can be used for separate
pseudo domains if desired, a typical reason being to allow specifying
distinct postmaster return addresses for the different pseudo domains.
In this case, define separate channels, each with their own rewrite
rules, and use the returnaddress
keyword on each channel
to specity the desired postmaster address. For instance, channel
definitions could be:
directory returnaddress postmaster@acme.com DIRECTORY-DAEMON directory_a1 returnaddress postmaster@a1.acme.com DIRECTORY-A1with rewrite rules
acme.com $U%acme.com@DIRECTORY-DAEMON a1.acme.com $U%a1.acme.com@DIRECTORY-A1