Date: Fri, 6 Feb 2009 14:58:47 -0500 From: <Greg.Stark@sungard.com> To: <Greg.Stark@sungard.com>, <steve@ibctech.ca> Cc: freebsd-questions@freebsd.org Subject: RE: Sendmail to Relay different domains to different hosts Message-ID: <EE14DD41CD710E48908C707C66E2B4BC03839044@VOO-EXCHANGE05.internal.sungard.corp> In-Reply-To: <EE14DD41CD710E48908C707C66E2B4BC03838FAD@VOO-EXCHANGE05.internal.sungard.corp> References: <EE14DD41CD710E48908C707C66E2B4BC03838F09@VOO-EXCHANGE05.internal.sungard.corp><498C896A.6000000@ibctech.ca> <EE14DD41CD710E48908C707C66E2B4BC03838FAD@VOO-EXCHANGE05.internal.sungard.corp>
next in thread | previous in thread | raw e-mail | index | archive | help
Just did some testing. A single entry for the corporate domain as described below and the smarthost set for everything else seems to work. Thanks very much everyone! Greg -----Original Message----- From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Greg.Stark@sungard.com Sent: Friday, February 06, 2009 2:10 PM To: steve@ibctech.ca Cc: freebsd-questions@freebsd.org Subject: RE: Sendmail to Relay different domains to different hosts Great! I will give this a try. =20 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:steve@ibctech.ca]=20 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.Stark@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. =20 > 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-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EE14DD41CD710E48908C707C66E2B4BC03839044>