On 2024-12-05 17:37, Viktor Dukhovni via Postfix-users wrote:
> 
> You can avoid recursion by using RHS values in the expansions of
> envelope recipient addresses that don't match any keys in the virtual
> alias table!
> 
> Suppose each user (and the office mailbox) has two addresses:
> 
>     - Public primary:  user@acme.example
>     - Internal route:  u...@mailstore.acme.example

Indeed, I've focused on mangling user@ part, while @domain is also
suitable. It even crossed my mind once while writing original question,
but apparently I've dismissed it right away... Now when you've written
this it looks like the best and most direct solution, thanks!

> Mail to either address is delivered to the user, though your MTA could
> easily reject attempts to send mail to internal addresses from outside.
> 
> Then your virtual aliases become
[...]

Yes, that should work. I'll have to map both the domains to the same
account in dovecot (for LMTP user verification and destination
selection), but then it could simplify even more my postfix setup.

> And I do recommend also considering/responding to Jaroslaw's questions,
> perhaps your design is needlessly elaborate and out of step with the
> actual requirements.  Good luck.

Thank you
-- 
Tomasz Pala
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to