From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 19:10:07 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A999D1065676 for ; Fri, 6 Feb 2009 19:10:07 +0000 (UTC) (envelope-from greg.stark@sungard.com) Received: from SG2EHSOBE003.bigfish.com (outbound-sin.frontbridge.com [207.46.51.80]) by mx1.freebsd.org (Postfix) with ESMTP id 182DA8FC16 for ; Fri, 6 Feb 2009 19:10:06 +0000 (UTC) (envelope-from greg.stark@sungard.com) Received: from mail220-sin-R.bigfish.com (10.3.40.3) by SG2EHSOBE003.bigfish.com (10.3.40.23) with Microsoft SMTP Server id 8.1.291.1; Fri, 6 Feb 2009 19:10:05 +0000 Received: from mail220-sin (localhost.localdomain [127.0.0.1]) by mail220-sin-R.bigfish.com (Postfix) with ESMTP id 9BC65620187; Fri, 6 Feb 2009 19:10:05 +0000 (UTC) X-BigFish: VPS-29(zz542N98dR4015M936fM9371P10d1Izzzzz2dh6bh41i42k43j61h) X-Spam-TCS-SCL: 0:0 X-FB-SS: 5, Received: by mail220-sin (MessageSwitch) id 1233947403810109_26890; Fri, 6 Feb 2009 19:10:03 +0000 (UCT) Received: from us-voo-smtp04.internal.sungard.corp (unknown [216.83.166.45]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail220-sin.bigfish.com (Postfix) with ESMTP id 37B9E17C805F; Fri, 6 Feb 2009 19:10:02 +0000 (UTC) Received: from us-voo-smtp12.internal.sungard.corp ([168.162.128.54]) by us-voo-smtp04.internal.sungard.corp with Microsoft SMTPSVC(6.0.3790.3959); Fri, 6 Feb 2009 14:09:51 -0500 Received: from VOO-EXCHANGE05.internal.sungard.corp ([168.162.128.69]) by us-voo-smtp12.internal.sungard.corp with Microsoft SMTPSVC(6.0.3790.3959); Fri, 6 Feb 2009 14:09:51 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Date: Fri, 6 Feb 2009 14:09:49 -0500 Message-ID: In-Reply-To: <498C896A.6000000@ibctech.ca> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Sendmail to Relay different domains to different hosts Thread-Index: AcmIjZL6j2Ccv+eETUmAmLAiLFNFNwAALlDQ References: <498C896A.6000000@ibctech.ca> From: To: X-OriginalArrivalTime: 06 Feb 2009 19:09:51.0157 (UTC) FILETIME=[7C755E50:01C9888E] Cc: freebsd-questions@freebsd.org Subject: RE: Sendmail to Relay different domains to different hosts X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Feb 2009 19:10:08 -0000 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