From owner-freebsd-questions@FreeBSD.ORG Tue Oct 25 18:58:17 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 C2F9116A421 for ; Tue, 25 Oct 2005 18:58:17 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E94E43D83 for ; Tue, 25 Oct 2005 18:58:01 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id C2E405D6A; Tue, 25 Oct 2005 14:58:00 -0400 (EDT) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07755-09; Tue, 25 Oct 2005 14:57:58 -0400 (EDT) Received: from [192.168.1.3] (pool-68-161-76-130.ny325.east.verizon.net [68.161.76.130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 19D9D5C46; Tue, 25 Oct 2005 14:57:58 -0400 (EDT) Message-ID: <435E8039.4020205@mac.com> Date: Tue, 25 Oct 2005 14:58:01 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 X-Accept-Language: en-us, en MIME-Version: 1.0 To: stan , freebsd-questions References: <20051024223808.GA10918@teddy.fas.com> <9184F321-00C3-47C9-885C-014BFE245993@mac.com> <20051024230756.GA12082@teddy.fas.com> <435D917B.7040804@mac.com> <20051025024946.GA18256@teddy.fas.com> <435E5F62.5050002@mac.com> <20051025173932.GA13863@teddy.fas.com> In-Reply-To: <20051025173932.GA13863@teddy.fas.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: Subject: Re: sendmail/mailertable 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: Tue, 25 Oct 2005 18:58:17 -0000 stan wrote: [ ... ] >>Yes and no. Masquerading is for mail which passes through the server, >>which includes mail being delivered locally from some other machine. > > OK, that makes sense. > > Next question, since sendmail is _already_ rewriting the address, why will > adding still more rewritng stop it from doing what it is doing now, since > Masquerading isn't enabled presently. There's a big long discussion of this in cf/README, but reasonable people have been known to find sendmail documentation non-informative. :-) It might be the case that using statements of the form: VIRTUSER_DOMAIN(`example.com')dnl ...in your .mc file may help exclude them from canonification. It may also be the case that what you want to do is going to be better handled by two SMTP servers, one as an external gateway, using and exposed to DNS and your wildcard MX records, and one internal mailserver which handles local delivery, masquerading, a mailertable distributing mail to any other local SMTP destinations (think mailserver/listservers running on other machines), and even use FEATURE nocanonify if you want to/have to disregard DNS entirely. Put a spamfilter/virusfilter on your external relay, which will then serve as your SMART_HOST for the internal mailserver. -- -Chuck