The Mail Manager supplies a means of modifying the domain table. After installation, by default the domain table is disabled. Once enabled, and a domain table created, every address will be looked up in the domain table. If a successful match is found in the domain table, the address will be re-written as specified by the matching entry. Otherwise, the address will pass through unaltered.
The domain table allows domain addresses to be re-written, typically for the following purposes:
The resulting screen presents a button to click to activate/deactivate the enabled state.
A pop-up screen asks if you wish to edit the domain table file.
No will cancel, and you will be returned to the main screen.
If the entry has an asterisk () in the leftmost column,
then subdomain lookups (also often called partial domain matching)
will be allowed on the name under the ``Host'' column. With
subdomain lookups, an address does not have to match the entire
name under the ``Host'' column - it may only match a part of, or
rather a ``subdomain'' of, that name in order for the address to
be routed as specified by that entry. This enables you to map all
host names with a common subdomain to a specified host name or
route. For example, consider an entry with domain name
footle.com in the ``Host'' column, and other.com
in the ``Route via'' column. If subdomain lookups are not allowed
for this entry (that is, there is no asterisk in the leftmost
column), then an address user@footle.com will
match this entry, but user@foo.footle.com will
not. If subdomain lookups were allowed in this example, then
user@foo.footle.com would be re-written as
<@other.com:user@foo.footle.com>.
This is an example of source routing.
Note that you may also specify a source route by creating more than one gateway in the route for the ``Route via'' column. Again, consider an example entry, with foo.footle.com as the ``Host'' name, and hop1.footle.com > bar.caldera.com as the ``Route via'' value. To make this example simpler, we will not allow subdomain lookups on this entry. This entry rewrites any mail addressed foo.footle.com so that it first goes to hop1.footle.com before its final destination bar.caldera.com. So user@foo.footle.com will be rewritten as <@hop1.footle.com:user@bar.caldera.com>. For further information on the domain table, see UNRESOLVED XREF-0.
This produces an ``Add Domain Table Entry'' screen.
Note that it is mandatory to have an entry in the ``Name'' field and an entry in the ``Real Name'' field. The host name must not contain a space and must not have the same host name as an already existing entry.
The ``Route to host'' field is scrollable and has the following buttons:
This produces a pop-up ``Add to Route'' screen.
This produces a screen similar to the ``Add Domain Table Entry'' screen described in ``Adding a domain table entry''.
Order of the entries is significant, as the first lookup which is successful will stop further lookups in the domain table.