PMDF System Manager's Guide


Previous Contents Index

3.2.1 Directory Channel Definition and Rewrite Rules

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-DAEMON 
Rewrite rules of the form


domain            $U%domain@DIRECTORY-DAEMON 
should 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 example.com and a1.example.com are pseudo domains to be handled by the directory channel, rewrite rules of the form:


example.com           $U%example.com@DIRECTORY-DAEMON 
a1.example.com        $U%a1.example.com@DIRECTORY-DAEMON 
should 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@example.com 
DIRECTORY-DAEMON 
 
directory_a1 returnaddress postmaster@a1.example.com 
DIRECTORY-A1 
with rewrite rules


example.com           $U%example.com@DIRECTORY-DAEMON 
a1.example.com        $U%a1.example.com@DIRECTORY-A1 


Previous Next Contents Index