Sendmail and multiple mail server

Richard Smith rdls at
Mon Jan 15 14:23:50 GMT 2001

David Richards wrote:
> Hi
>    is there any way for sendmail to route mail for domainA to mailserverA
> and route mail for domainB to mailserverB

The `mailertable' feature enables you to nail down routes without using
MX, particularly useful if you want to route to internal nodes through a

The feature is enabled by default, but if you've edited the .mc file,
this is the line that enables it:

FEATURE(mailertable, `hash -o /etc/mail/mailertable')dnl

The `/etc/mail/mailertable' file contains one line for each route, such

domainA    smtp:[mailserverA]
domainB    smtp:[mailserverB]

See `/usr/src/contrib/sendmail/cf/README' for a detailed description of

Hope this helps,

This message has been checked for all known viruses, by Star Internet, 
delivered through the MessageLabs Virus Control Centre. 
For further information visit:

More information about the Ukfreebsd mailing list