From owner-freebsd-questions@FreeBSD.ORG Sun Oct 10 20:22:31 2004 Return-Path: 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 E0B3A16A4CE for ; Sun, 10 Oct 2004 20:22:31 +0000 (GMT) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69BAD43D48 for ; Sun, 10 Oct 2004 20:22:31 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from [192.168.1.3] (pool-68-160-246-51.ny325.east.verizon.net [68.160.246.51]) by pi.codefab.com (8.12.11/8.12.11) with ESMTP id i9AKMJp6032584 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 10 Oct 2004 16:22:21 -0400 (EDT) Message-ID: <416999EC.40003@mac.com> Date: Sun, 10 Oct 2004 16:22:04 -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.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Noah References: <20041010154602.M57142@enabled.com> In-Reply-To: <20041010154602.M57142@enabled.com> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=5.5 tests=HTML_MESSAGE autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pi.codefab.com cc: freebsd-questions@freebsd.org Subject: Re: sendmail and virtualusers X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2004 20:22:32 -0000 Noah wrote: [ ... ] > but when I send mail to blah@domain1.com I thought it would bounce but instead > it appears in my personal mailbox with the username user2 (user1 is a > different account). I am even sending mail from a remote machine. > > I cant figure out why it is delivered to me and also cant figure out why a > bounce is not sent to the originator. I don't support you have LUSER_RELAY set in your .mc? If you want to understand how and why sendmail takes a given address and changes it and/or decides where to deliver it, use a command like: % echo '3,0 cswiger@mac.com' | sendmail -bt ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter
> canonify input: < cswiger @ mac . com > Canonify2 input: cswiger < @ mac . com > Canonify2 returns: cswiger < @ mac . com . > [ ...many lines deleted... ] parse returns: $# esmtp $@ mac . com . $: cswiger < @ mac . com . > ....obviously using a relevant email address instead of my own. This will show lookups to your virtusertable and mailertable maps, and indicates whether the address will be handled for local delivery-- which looks something like: parse returns: $# local $: cswiger ...or be handled for remote delivery to some MX via the E/SMTP mailer-- which is what the "$# esmtp $@ mac . com ." part above means (obviously :-), etc. -- -Chuck PS: You might obtain better help from a sendmail-specific list than here.