From owner-freebsd-questions@FreeBSD.ORG Mon Oct 24 23:08: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 9871016A42A for ; Mon, 24 Oct 2005 23:08:17 +0000 (GMT) (envelope-from stanb@panix.com) Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id B042643D8E for ; Mon, 24 Oct 2005 23:07:58 +0000 (GMT) (envelope-from stanb@panix.com) Received: from mailspool3.panix.com (mailspool3.panix.com [166.84.1.78]) by mail1.panix.com (Postfix) with ESMTP id 2081159708; Mon, 24 Oct 2005 19:07:57 -0400 (EDT) Received: from teddy.fas.com (pcp08632294pcs.mplsnt01.sc.comcast.net [68.58.232.106]) by mailspool3.panix.com (Postfix) with ESMTP id 021504DFB82; Mon, 24 Oct 2005 19:07:57 -0400 (EDT) Received: from stan by teddy.fas.com with local (Exim 3.36 #1 (Debian)) id 1EUBQ4-00039r-00; Mon, 24 Oct 2005 19:07:56 -0400 Date: Mon, 24 Oct 2005 19:07:56 -0400 From: stan To: Charles Swiger Message-ID: <20051024230756.GA12082@teddy.fas.com> Mail-Followup-To: Charles Swiger , Free BSD Questions list , Stewart Flood References: <20051024223808.GA10918@teddy.fas.com> <9184F321-00C3-47C9-885C-014BFE245993@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9184F321-00C3-47C9-885C-014BFE245993@mac.com> X-Editor: gVim X-Operating-System: Debian GNU/Linux X-Kernel-Version: 2.4.23 X-Uptime: 19:04:18 up 72 days, 22:37, 1 user, load average: 0.10, 0.12, 0.05 User-Agent: Mutt/1.5.4i Sender: Stan Brown 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: Mon, 24 Oct 2005 23:08:17 -0000 On Mon, Oct 24, 2005 at 06:51:12PM -0400, Charles Swiger wrote: > On Oct 24, 2005, at 6:38 PM, stan wrote: > >I have a machine that hosts several virtual domains. The domains > >have wildcarded DNS records. > > > >I want mail recived for say "foo@listmaint.samp.ivosite.com" to get > >passed > >on downstream like that without striping out the "listmaint" part. > >I think I can do this with mailertable. > > 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? > > ;; QUERY SECTION: > ;; listmaint.samp.ivosite.com, type = MX, class = IN > > ;; ANSWER SECTION: > listmaint.samp.ivosite.com. 1H IN MX 10 prod1.ivo.net. > > 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. Sorry if I was not clear in the original message. -- U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong Terror - New York Times 9/3/1967