On Thu, Oct 02, 2025 at 09:54:29AM +0200, Marek Podmaka via Postfix-users wrote:
> We are using postfix 3.5.25-0+deb11u1 to host many virtual domains.
> Recently one domain was migrated to M365, so we removed it from the
> transport table, but aliases definitions were still there.
> We have noticed that in this case postfix was rewriting the recipient
> email address based on our aliases even when delivering to M365.
As documented and expected. The virtual(5) alias table applies to
all recipients *regardless* of address class.
> Where is the mistake in our config (very old one, adjusted multiple
> times over the last 10 years)?
The mistake is retention of aliases for domains you no longer manage.
> I now see maybe 2 issues:
>
> 1) What happens when virtual_alias_domains is empty? (It is also empty
> in the output of postconf.) To which domains is virtual_alias_maps
> applied in this case?
To all domains, regardless of the value of virtual_alias_domains.
> I have a comment that "virtual alias" should not
> be mixed with "virtual mailbox".
True for the "_domains" parameters, but as already mentioned twice
this does not affect the behaviour of virtual_alias_maps which is
a global rewrite table.
--
Viktor. 🇺🇦 Слава Україні!
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]