Operating System - HP-UX
1827679 Members
3228 Online
109967 Solutions
New Discussion

sendmail 8.9.3.1 and sending to multiple domains

 
SOLVED
Go to solution
Rick Garland
Honored Contributor

sendmail 8.9.3.1 and sending to multiple domains

Hi all:

Got the above sendmail version on HPUX 11.00. Trying to setup to mail so that the mail being sent will be routed to the appropriate smart host.

In other words;

mail destined for domainA will be routed and delivered through the smart host at domainA. mail for domainB will be routed and delivered through the smart host at domainB. All other mail will be routed and delivered through smart host at domainC.

How can I?
5 REPLIES 5
Sajid_1
Honored Contributor
Solution

Re: sendmail 8.9.3.1 and sending to multiple domains

Christopher Caldwell
Honored Contributor

Re: sendmail 8.9.3.1 and sending to multiple domains

From a low level, stock sendmail picks how to route mail to different domains, based on the MX record(s) for for those domains. You set the MX records up in DNS.

If you want to override this behavior (and the sendmail host we're talking about is a gate or relay for the domains in question), use a mailertable entry like
a.com smtp:[name.of.the.smart.relay]

on HP-UX, use somthing like
makemap dbm /etc/mail/mailtertable < /etc/mail/mailertable

Don't forget to uncomment the mailertable rulesets in sendmail.cf

BTW, is this configuration, the host were on now generally appears as an MX for the domain in question (while the smartrelay doesn't).

Rick Garland
Honored Contributor

Re: sendmail 8.9.3.1 and sending to multiple domains

The system I am working with does not run DNS. So the MX entries are not available.
Christopher Caldwell
Honored Contributor

Re: sendmail 8.9.3.1 and sending to multiple domains

mailertable
a.com smtp:[1.2.3.4]
b.com smtp:[1.2.3.5]

Relay everything else to c.

BTW, mailertable should use anthing that's available to the resolver (/etc/hosts, DNS, etc.) as long as resolv.conf /nsswitch.conf are correct.
Rick Garland
Honored Contributor

Re: sendmail 8.9.3.1 and sending to multiple domains

I figured it was the mailertable setup but when I was trying that initially it kept going to the localhost. When I copied over a sendmail.cf file from another similiar system and made the necessary changes, it worked. So there was something not right in the original sendmail.cf file.

Many thanks for the assistance!