From owner-freebsd-questions@FreeBSD.ORG Thu Oct 29 03:26:16 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 342201065670 for ; Thu, 29 Oct 2009 03:26:16 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from poseidon.ceid.upatras.gr (poseidon.ceid.upatras.gr [150.140.141.169]) by mx1.freebsd.org (Postfix) with ESMTP id D3E4F8FC13 for ; Thu, 29 Oct 2009 03:26:15 +0000 (UTC) Received: from mail.ceid.upatras.gr (unknown [10.1.0.143]) by poseidon.ceid.upatras.gr (Postfix) with ESMTP id 88B82EB470C; Thu, 29 Oct 2009 05:26:14 +0200 (EET) Received: from localhost (europa.ceid.upatras.gr [127.0.0.1]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 661D2451B2; Thu, 29 Oct 2009 05:26:14 +0200 (EET) X-Virus-Scanned: amavisd-new at ceid.upatras.gr Received: from mail.ceid.upatras.gr ([127.0.0.1]) by localhost (europa.ceid.upatras.gr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vCoHyDADQU2T; Thu, 29 Oct 2009 05:26:14 +0200 (EET) Received: from kobe.laptop (adsl26-237.kln.forthnet.gr [77.49.153.237]) by mail.ceid.upatras.gr (Postfix) with ESMTP id 20C0D45152; Thu, 29 Oct 2009 05:26:14 +0200 (EET) Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id n9T3QCNq052685 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Oct 2009 05:26:12 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id n9T3QBOF052684; Thu, 29 Oct 2009 05:26:11 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: Aflatoon Aflatooni References: <73281.80475.qm@web56205.mail.re3.yahoo.com> Date: Thu, 29 Oct 2009 05:26:10 +0200 In-Reply-To: <73281.80475.qm@web56205.mail.re3.yahoo.com> (Aflatoon Aflatooni's message of "Wed, 28 Oct 2009 15:49:15 -0700 (PDT)") Message-ID: <87d446vq25.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-questions@freebsd.org Subject: Re: Bind Sendmail to an IP address 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: Thu, 29 Oct 2009 03:26:16 -0000 On Wed, 28 Oct 2009 15:49:15 -0700 (PDT), Aflatoon Aflatooni wrote: > Hi, > I have a Freebsd 7.2 installation and using Sendmail for the SMTP > service. This server has two public interfaces and different IP > addresses. > > I need to have sendmail configured so that the outbound emails are > sent using a certain IP address (SPF rules).=A0 I have=A0tried the > following without any success: > > DAEMON_OPTIONS(`Addr=3Dx.y.z.i')dnl > =A0 > Any help or suggestions would be greatly appriciated. When Sendmail relays messages to another server it acts as the `client' for that server. So you have to use CLIENT_OPTIONS() instead of the DAEMON_OPTIONS() you are using now: CLIENT_OPTIONS(`Addr=3Da.b.c.d')dnl