From owner-freebsd-questions@FreeBSD.ORG Wed Apr 25 08:53:15 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 11E3016A406 for ; Wed, 25 Apr 2007 08:53:15 +0000 (UTC) (envelope-from hoschi@nemesis.frida.mouhaha.de) Received: from nemesis.frida.mouhaha.de (nemesis.frida.mouhaha.de [85.236.48.53]) by mx1.freebsd.org (Postfix) with ESMTP id CA3C713C489 for ; Wed, 25 Apr 2007 08:53:14 +0000 (UTC) (envelope-from hoschi@nemesis.frida.mouhaha.de) Received: by nemesis.frida.mouhaha.de (Postfix, from userid 1001) id 027C44B2511; Wed, 25 Apr 2007 10:53:13 +0200 (CEST) Date: Wed, 25 Apr 2007 10:53:13 +0200 From: Oliver Peter To: n j Message-ID: <20070425085313.GK1322@nemesis.frida.mouhaha.de> References: <92bcbda50704250027m721e7115p4a30eff3a282946c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LiQwW4YX+w4axhAx" Content-Disposition: inline In-Reply-To: <92bcbda50704250027m721e7115p4a30eff3a282946c@mail.gmail.com> X-Operating-System: FreeBSD 6.2-RELEASE-p2 i386 User-Agent: Mutt/1.5.14 (2007-02-12) Cc: freebsd-questions Subject: Re: postfix question 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: Wed, 25 Apr 2007 08:53:15 -0000 --LiQwW4YX+w4axhAx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 25, 2007 at 09:27:48AM +0200, n j wrote: > Hello, Hello Nino, =20 > does anybody know is it possible with Postfix to "route" e-mail based > on either the inet interface message came from or the sender of a > message? I'm using Postfix v.2.3.8 on a multihomed machine and have > two smtpd's defined in master.cf. What I would like is that mail > submitted through smtpd that is listening on A.B.C.D goes out through > the smtp client that binds to A.B.C.D and the rest of the mail go > through the other smtp client. The problem as I see it is that, once > messages arrive in the queue, it becomes irrelevant where they came > from and the only "routing" that is available is recipient-based. >=20 > Thanks for any suggestions! Would it help to pimp your transport map? # In the case of delivery via SMTP, one may specify host- # name:service instead of just a host: # # example.com smtp:bar.example:2025 You can replace bar.example with the IP address of the other interface. It works with my DBmail configuration. --=20 Oliver PETER, email: hoschi@mouhaha.de, ICQ# 113969174 "Worker bees can leave. Even drones can fly away. The Queen is their slave." --LiQwW4YX+w4axhAx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iEYEARECAAYFAkYvFvkACgkQ6LH/IUVtaI/PxACgr7S1cAFJiQ8IMyuYXsouvTQq 3tEAn0TTDJ0VvqyAMKboOntB6lZMZVrQ =SUXC -----END PGP SIGNATURE----- --LiQwW4YX+w4axhAx--