On Tue, Dec 29, 2009 at 06:47:07PM +0100, Christoph Anton Mitterer wrote:

> What I wonder is: When does recipient checking happen?
> Probably somewhere during the "receiving stage" (because we want smtpd
> to reject unknown recipients).

Don't confuse recipient validation with relay control.

> But unlike when it checks the domain of the mail (where e.g. virtual
> aliases are not taken into account)

Relay control.

> it seems that when checking the
> user-part of the address virtual aliases are taken into account.

Recipient validation.

> Adding example.com (or remote.domain) to mydestination above should mean
> that ONLY <existing local user>@example.com (or @remote.domain or
> @<address literal> is accepted, right?

No. It means that example.com becomes a local domain.

> But it seems that also <non-existent local user>@example.com domain is
> accepted _if_ it is rewritten to some existing local user with
> virtual_alias_maps (the domains were not part of virtual_alias_domains)!
> And I do not really understand why ;)

Recipient validation existence of virtual mappings into account. Virtual
and canonical mappings apply to all domains, so it would be a mistake
to reject addresses that are rewritten downstream. So the SMTP server
performs an existence test on the lookup key.

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to