Problem
I wish to configure MMDF such that the local system will accept
mail addressed to multiple domains as local mail. For example,
the following:username@fairy.co.uk
username@greencare.co.uk
username@jif.co.ukwould all be accepted as mail for the user 'username', on the local system (fairy.co.uk).
Solution
The MMDF system may be configured to accept mail to multiple domains
as local mail. For example:(a) Each domain to be treated as the local system should
be listed in a domain table as routed via the fully
qualified domain. The following:fairy.co.uk: fairy.co.uk
fairy: fairy.co.uk
greencare.co.uk: greencare.co.uk
greencare: greencare.co.uk
jif.co.uk: jif.co.uk
jif: jif.co.ukallows any of the addresses:username@fairy.co.uk
username@fairy
username@greencare.co.uk
username@greencare
username@jif.co.uk
username@jif(b) Each of the fully qualified domains listed on the
right-hand side of the domain table should be listed
in the left-hand side of the channel table for the
local channel:fairy.co.uk: fairy
greencare.co.uk: fairy
jif.co.uk: fairy(c) The MMDF database must be rebuilt using dbmbuild(ADM), and
the deliver(ADM) daemons restarted. Refer to the System
Administrator's Guide for details on how to do this.Ensure that any edits performed, and the invocation of dbmbuild(ADM), are performed as the user mmdf rather than as root.
The domain table ('MTBL name=locdom ...' below), should have the
flags 'flags=domain, flags=partial'. It is possible to use the
domain specified in the MDMN declaration to reduce the number of
domains to be explicitly listed as demonstrated below.The channel table ('MTBL name=local, ...' below) should have the flags 'flags=channel'.
An example of the entries required in /usr/mmdf/mmdftailor
is shown below. For more information on mmdftailor refer to
mmdf(ADM), mmdftailor(F), and the System Administrator's Guide.MTBL name=locdom, file="local.dom", show="Local domain",
flags=domain, flags=partialMTBL name=local, file="local.chn", show="Local Host Aliases",
flags=channelMDMN "co.uk", show="Local domain", table=locdom
MCHN local, show="Local Delivery", table=local, ap=822,
mod=immBy convention, the domain and channel tables are named local.dom and local.chn and are located in the directory /usr/mmdf/table. The mkdev command 'mkdev mmdf' will create these tables and the required entries in mmdftailor if invoked.
Examples of /usr/mmdf/table/local.dom and /usr/mmdf/table/local.chn
are shown below. Note that the domain table (local.dom) uses the
domain specified in the MDMN declaration to reduce the number of
domains explicitly listed.Example local.dom:fairy: fairy.co.uk
greencare: greencare.co.uk
jif: jif.co.ukExample local.chn:fairy.co.uk: fairy
greencare.co.uk: fairy
jif.co.uk: fairy