From owner-freebsd-questions@FreeBSD.ORG Fri Feb 6 19:00:37 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 C590A10656CD for ; Fri, 6 Feb 2009 19:00:37 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email1.allantgroup.com (email1.emsphone.com [199.67.51.115]) by mx1.freebsd.org (Postfix) with ESMTP id 7D3318FC31 for ; Fri, 6 Feb 2009 19:00:37 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by email1.allantgroup.com (8.14.0/8.14.0) with ESMTP id n16J0Znb042784 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 6 Feb 2009 13:00:35 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id n16J0ZBM016491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 6 Feb 2009 13:00:35 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id n16J0WvF016478; Fri, 6 Feb 2009 13:00:32 -0600 (CST) (envelope-from dan) Date: Fri, 6 Feb 2009 13:00:32 -0600 From: Dan Nelson To: Greg.Stark@sungard.com Message-ID: <20090206190032.GA13084@dan.emsphone.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: FreeBSD 7.1-STABLE User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email1.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email1.allantgroup.com [199.67.51.78]); Fri, 06 Feb 2009 13:00:36 -0600 (CST) X-Scanned-By: MIMEDefang 2.45 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:00:38 -0000 In the last episode (Feb 06), Greg.Stark@sungard.com said: > 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? You want to use the /etc/mail/mailertable file: http://www.sendmail.org/m4/mailertables.html -- Dan Nelson dnelson@allantgroup.com