On Tue, Feb 22, 2022 at 10:16:26AM +0100, Víctor Rubiella Monfort wrote:

> Next test should be test to add all-accounts to alias maps:
> 
> virtual_mailbox_maps:
>    h...@example.com maildir1/
>    ad...@example.com maildir2/
> 
> virtual_alias_maps
>    @example.com h...@example.com
>    h...@example.com h...@example.com
>    ad...@example.com ad...@example.com
> 
> ..
> 
> This is the correct way?

Yes, but with all those rewrites in virtual alias maps, you no longer
need the virtual_mailbox_maps entries.  They'd only be used for
recipient validation, for which the virtual alias entries are
sufficient.

> Is t really necessary to duplicate all existing account on aliases
> with A A keyvalues?

No, you can leave virtual_mailbox_maps empty if you're not using the
virtual(8) delivery agent, and using lmtp(8) to Dovecot instead.

> Isn't there a cleaner way to only match the non-existent ones?

No, but duplication is not needed, and if it were, you could always
use "make" or similar to construct one of the tables from the other.

-- 
    Viktor.

Reply via email to