Technical article 104640

How to configure MMDF to allow multiple domains for the local system?

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

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.uk

would 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.uk
allows 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=partial
MTBL name=local, file="local.chn", show="Local Host Aliases",
        flags=channel
MDMN    "co.uk", show="Local domain", table=locdom
MCHN    local, show="Local Delivery", table=local, ap=822,
        mod=imm

By 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.uk
Example local.chn:
fairy.co.uk:            fairy
greencare.co.uk:        fairy
jif.co.uk:              fairy

From the Xinuos technical article database, record 104640. Reproduced with permission. The original is at www.sco.com/ta/104640, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.