John:
> r...@klam.ca has/is an alias of postmaster+r...@klam.ca cause a 550 result.
> 
> if you look at the log extract attached Postfix accepts an email
> for "r...@klam.ca" from gmail and eventually hands it off to Dovecot
> for final delivery using LMTP.  The problem is that the address
> is wrong, I thought it should have been "rewritten" by this point,
> it should to going "postmaster+r...@klam.ca".
> Dovecot then quite correctly rejects it with a 550 code, as the
> user root does not exist.  Why did the address not get rewritten?

Why should Postfix make this query in the first place?

For example, Postfix always queries virtual_alias_maps, but it
queries alias_maps only for domains that match mydestination.

Other reasons why Postfix does not query some table:

local address class:
domain name matches mydestination or inet_interfaces
recipient localpart matches alias_maps or password file

virtual mailbox class:
domain name matches virtual_mailbox_domains
recipient matches virtual_mailbox_maps

relay class:
domain name matches relay_domains
recipient matches relay_recipient_maps

virtual alias class:
domain name matches virtual_alias_domains
recipient matches virtual_alias_maps AND rewrites to different domain

        Wietse

Reply via email to