From owner-freebsd-questions@FreeBSD.ORG Wed Apr 25 10:48:31 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 1D82516A400 for ; Wed, 25 Apr 2007 10:48:31 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from mail.freebsd-corp-net-guide.com (mail.web-strider.com [65.75.192.90]) by mx1.freebsd.org (Postfix) with ESMTP id BF2CE13C455 for ; Wed, 25 Apr 2007 10:48:30 +0000 (UTC) (envelope-from tedm@toybox.placo.com) Received: from TEDSDESK (nat-rtr.freebsd-corp-net-guide.com [65.75.197.130]) by mail.freebsd-corp-net-guide.com (8.13.8/8.13.8) with SMTP id l3PAmT84021731 for ; Wed, 25 Apr 2007 03:48:30 -0700 (PDT) (envelope-from tedm@toybox.placo.com) From: "Ted Mittelstaedt" To: "User Questions" Date: Wed, 25 Apr 2007 03:49:38 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <20070425063738.0E52.GERARD-SEIBERT@seibercom.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1896 Importance: Normal X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mail.freebsd-corp-net-guide.com [65.75.192.90]); Wed, 25 Apr 2007 03:48:30 -0700 (PDT) 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 10:48:31 -0000 Remember, UNIXes and suchlike use a single IP address route table. Your machine isn't trying to establish a connection to: username@somedomain.com It is trying to establish a connection to IP address x.y.z.a Machines don't speak domainese. They translate the human-friendly stuff like domain names and such into IP addresses. Once the system resolves the recipient e-mail address into a destination IP address, the choice of interface that it goes out on is entirely controlled by the route table. And due to the single route table in the system, that is going to be the interface that reaches your default gateway. Even if this box was a router, like a Cisco that supports route maps that allow you to bypass the single route table, since the mail is originating from the system, it would always follow the same map anyway. You need 2 mailservers to do what you want. Ted > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Gerard > Sent: Wednesday, April 25, 2007 3:38 AM > To: User Questions > Subject: Re: postfix question > > > On Wednesday April 25, 2007 at 03:27:48 (AM) n j wrote: > > > > Hello, > > > > 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. > > > > Thanks for any suggestions! > > You would probably get better assistance if you asked this question on > the Postfix forum. > > -- > Gerard > _______________________________________________ > 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" >