From owner-freebsd-questions@FreeBSD.ORG Thu Nov 10 03:02:11 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A47716A427 for ; Thu, 10 Nov 2005 03:02:11 +0000 (GMT) (envelope-from gayn.winters@bristolsystems.com) Received: from bristolsystems.com (h-68-167-239-98.lsanca54.covad.net [68.167.239.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0740C43D45 for ; Thu, 10 Nov 2005 03:02:10 +0000 (GMT) (envelope-from gayn.winters@bristolsystems.com) Received: from workdog ([192.168.1.201]) by bristolsystems.com (8.11.6/8.11.6) with ESMTP id jAA328n22526; Wed, 9 Nov 2005 19:02:08 -0800 From: "Gayn Winters" To: "'Ahnjoan Amous'" Date: Wed, 9 Nov 2005 19:01:59 -0800 Message-ID: <028f01c5e5a3$212dd950$c901a8c0@workdog> 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, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 In-Reply-To: <5e575c8a0511091826s3c24a3adkf8f6acca1c66fd68@mail.gmail.com> Importance: Normal Cc: freebsd-questions@freebsd.org Subject: RE: Masquerading Virtual domains in sendmail X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gayn.winters@bristolsystems.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Nov 2005 03:02:11 -0000 > -----Original Message----- > From: Ahnjoan Amous [mailto:ahnjoan@gmail.com] > Sent: Wednesday, November 09, 2005 6:27 PM > To: gayn.winters@bristolsystems.com > Cc: freebsd-questions@freebsd.org > Subject: Re: Masquerading Virtual domains in sendmail > > On 11/9/05, Gayn Winters wrote: > > I'm installing sendmail.8.13.3 on FBSD 5.4 on node.domain1.com. > > > > I've configured /etc/mail/local-host-names to accept mail for > > domain1.com and domain2.com. > > > > My user names look like bob.domain1.com and (a different Bob) > > bob.domain2.com. > > > > Inside /etc/mail/virtusertable I map > > bob@domain1.com bob.domain1.com > > bob@domain2.com bob.domain2.com > > > > Inbound all is well. BUT, > > > > What I can't figure out is how to masquerade mail from > bob.domain1.com > > as being from bob@domain1.com AND ALSO HAVE bob.domain2.com > masqueraded > > as being from bob@domain2.com. > > > > One test of this working is to be able to register both Bob's in the > > FreeBSD mailing lists as bob@domain1.com and bob@domain2.com. > > > > Ideas? References? > > > > Thanks, > > > > -gayn > > > > Bristol Systems Inc. > > 714/532-6776 > > www.bristolsystems.com > Try a Google search on "genericstable". I'm not sure if this is > exactly what you are looking for as you are trying to send mail via > the same username but it is what I use to specify sender domain for > different users. Understanding this may not be how you want to solve > the issue, you could send as bobA@ and bobB@ and genericstable could > translate that to whatever you would like. > > Ahnjoan > Thank you Ahnjoan. It looks like reversing the two columns of virtusertable to get genericstable gets me part of what I need; namely, the mail headers should translate correctly. Unfortunately, digging through the bat book and googling, it doesn't seem like the envelopes will get masqueraded, when I actually need them to be masqueraded on a per domain basis. The macro MASQUERADE_AS seems to be a global operation, which I don't want. Does anyone know if FEATURE(`masquerade_envelope') will work without MASQUERADE_AS? Somehow to me it seems like most ISP's have this problem. Thanks again, -gayn