From owner-freebsd-questions@FreeBSD.ORG Tue Oct 25 01:59:23 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 D26B416A41F for ; Tue, 25 Oct 2005 01:59:23 +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 67FCF43D45 for ; Tue, 25 Oct 2005 01:59:23 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id BE6B65D40; Mon, 24 Oct 2005 21:59:22 -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 84522-07; Mon, 24 Oct 2005 21:59:21 -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 724245CF6; Mon, 24 Oct 2005 21:59:21 -0400 (EDT) Message-ID: <435D917B.7040804@mac.com> Date: Mon, 24 Oct 2005 21:59:23 -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 References: <20051024223808.GA10918@teddy.fas.com> <9184F321-00C3-47C9-885C-014BFE245993@mac.com> <20051024230756.GA12082@teddy.fas.com> In-Reply-To: <20051024230756.GA12082@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: Stewart Flood , Free BSD Questions list 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 01:59:24 -0000 stan wrote: > On Mon, Oct 24, 2005 at 06:51:12PM -0400, Charles Swiger wrote: [ ... ] >>Get rid of the "hash -o" in your mailertable line, too. Your DNS >>wildcard MX records are telling sendmail that the mail should go to >>prod1.ivo.net: > > Just the -o part, right? Yes. >>If you want to disable DNS canonification, do something like this in >>your mailertable: >> >>listmaint.samp.ivosite.com smtp:[IP_of_real_MX] >> >>...where IP_of_real_MX if the IP address of the machine which is >>supposed to actually handle the mail for that machine, and is >>different from prod1.ivo.net. You can't fool your wildcard DNS >>record otherwise, because even if you try, remote SMTP hosts will >>look up the MX anyway. > > But it's _not_ different than prod1. I just want sendmail to pass > the ucanonified name on to the downstream processing (think > procmail) so that it's easy for automated downstream processing > to handle it. If this mail is going to be delivered locally, then you ought to add listmaint.samp.ivosite.com to class w, perhaps via the file /etc/mail/local-host-names. ----- You might want to use MASQUERADE_EXCEPTION(), as in: FEATURE(`allmasquerade')dnl FEATURE(`masquerade_envelope')dnl FEATURE(`masquerade_entire_domain')dnl MASQUERADE_AS(`example.com')dnl MASQUERADE_DOMAIN(`example.com')dnl MASQUERADE_EXCEPTION(`www.example.com')dnl MASQUERADE_EXCEPTION(`public.example.com')dnl MASQUERADE_EXCEPTION(`private.example.com')dnl Sendmail will re-write the hostname for anything matching *.example.com, _except_ for www.example.com, public.example.com, as explicitly listed. And you either need to list www.example.com in class w (aka the local-host-names file), or you need to specify a mailertable entry using square brackets to send the mail to some other server which will perform local delivery for that hostname. -- -Chuck