Great!  I will give this a try.  

If I put a single entry into the mailertable for the corporate domain
would everything else default to the smarthost defined in sendmail.cf?

Thanks,

Greg



-----Original Message-----
From: Steve Bertrand [mailto:st...@ibctech.ca] 
Sent: Friday, February 06, 2009 2:03 PM
To: Stark, Greg
Cc: freebsd-questions@freebsd.org
Subject: Re: Sendmail to Relay different domains to different hosts

greg.st...@sungard.com wrote:
> I am using Sendmail on a FreeBSD7.0 server as a mail relay for some of
> our servers.  These servers relay messages to both internal recipients
> and external customers.  I need to be able to relay mail destined to
our
> internal domain recipients to our corporate mail servers but relay
> everything else out to our usual smart host.   So basically, I am
> looking to relay emails destined for a certain domain to one host and
> the rest of the mail to another.  

> Does anyone know how I could configure
> sendmail to accomplish this?

Yes.

Take a look at the `mailertable.sample' file. Create an empty
'mailertable' file in /etc/mail, and add the domain-to-server maps to
it:

corporate.com   smtp:relay.corporate.com
other.com       smtp:some.other.server.com

...and then IIRC:

# cd /etc/mail
# makemap hash mailertable < mailertable

Steve


_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to