From owner-freebsd-questions@FreeBSD.ORG Mon Oct 24 22:51:26 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 BF3DF16A41F for ; Mon, 24 Oct 2005 22:51:26 +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 0CF6043D60 for ; Mon, 24 Oct 2005 22:51:26 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 431BA5CC4; Mon, 24 Oct 2005 18:51:25 -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 95043-04; Mon, 24 Oct 2005 18:51:24 -0400 (EDT) Received: from [199.103.21.238] (pan.codefab.com [199.103.21.238]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 52AAA5C90; Mon, 24 Oct 2005 18:51:24 -0400 (EDT) In-Reply-To: <20051024223808.GA10918@teddy.fas.com> References: <20051024223808.GA10918@teddy.fas.com> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9184F321-00C3-47C9-885C-014BFE245993@mac.com> Content-Transfer-Encoding: 7bit From: Charles Swiger Date: Mon, 24 Oct 2005 18:51:12 -0400 To: stan X-Mailer: Apple Mail (2.734) X-Virus-Scanned: amavisd-new at codefab.com Cc: 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 22:51:26 -0000 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: ;; 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. This is also why the usage of wildcard MX records is highly discouraged. -- -Chuck