cf/README for sendmail 8.12.3

Eric Allman of the Sendmail Consortium

Accepting Mail For Multiple Names

  If your host is known by several different names, you need to augment class {w}. This is a list of names by which your host is known, and anything sent to an address using a host name in this list will be treated as local mail.

You can do this in two ways:

  • either create the file /etc/mail/local-host-names containing a list of your aliases (one per line), and use ``FEATURE(`use_cw_file')'' in the .mc file, or
  • add ``LOCAL_DOMAIN(`')''.

Be sure you use the fully-qualified name of the host, rather than a short name.

If you want to have different address in different domains, take a look at the virtusertable feature, which is also explained at