Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Oct 2004 16:22:04 -0400
From:      Chuck Swiger <cswiger@mac.com>
To:        Noah <admin2@enabled.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: sendmail and virtualusers
Message-ID:  <416999EC.40003@mac.com>
In-Reply-To: <20041010154602.M57142@enabled.com>
References:  <20041010154602.M57142@enabled.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ruleset> <address>
 > 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?416999EC.40003>