From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 19:58:52 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 6B5EE106564A for ; Fri, 6 Feb 2009 19:58:52 +0000 (UTC) (envelope-from greg.stark@sungard.com) Received: from WA4EHSOBE003.bigfish.com (outbound-wa4.frontbridge.com [216.32.181.16]) by mx1.freebsd.org (Postfix) with ESMTP id 357AE8FC14 for ; Fri, 6 Feb 2009 19:58:51 +0000 (UTC) (envelope-from greg.stark@sungard.com) Received: from mail202-wa4-R.bigfish.com (10.8.14.235) by WA4EHSOBE003.bigfish.com (10.8.40.23) with Microsoft SMTP Server id 8.1.291.1; Fri, 6 Feb 2009 19:58:51 +0000 Received: from mail202-wa4 (localhost.localdomain [127.0.0.1]) by mail202-wa4-R.bigfish.com (Postfix) with ESMTP id A79E116181F1; Fri, 6 Feb 2009 19:58:51 +0000 (UTC) X-BigFish: VPS-29(zz542N98dR4015M936fM9371P10d1Izzzzz2dh6bh41i42k43j61h) X-Spam-TCS-SCL: 0:0 X-FB-SS: 5, Received: by mail202-wa4 (MessageSwitch) id 1233950330996348_18536; Fri, 6 Feb 2009 19:58:50 +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 mail202-wa4.bigfish.com (Postfix) with ESMTP id CAF55408068; Fri, 6 Feb 2009 19:58:50 +0000 (UTC) Received: from us-voo-smtp11.internal.sungard.corp ([168.162.128.53]) by us-voo-smtp04.internal.sungard.corp with Microsoft SMTPSVC(6.0.3790.3959); Fri, 6 Feb 2009 14:58:49 -0500 Received: from VOO-EXCHANGE05.internal.sungard.corp ([168.162.128.69]) by us-voo-smtp11.internal.sungard.corp with Microsoft SMTPSVC(6.0.3790.3959); Fri, 6 Feb 2009 14:58:49 -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:58:47 -0500 Message-ID: In-Reply-To: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Sendmail to Relay different domains to different hosts Thread-Index: AcmIjZL6j2Ccv+eETUmAmLAiLFNFNwAALlDQAAGylYA= References: <498C896A.6000000@ibctech.ca> From: To: , X-OriginalArrivalTime: 06 Feb 2009 19:58:49.0834 (UTC) FILETIME=[540BE4A0:01C98895] 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:58:52 -0000 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"