On 20.02.22 18:49, Phil Biggs wrote:
I have virtual_mailbox_maps in use with reject_unlisted_recipent and use
virtual_alias_maps to translate a validated address into a single matching
address for the corresponding dovecot user.

virtual_alias_maps map any address (even non-local one) to one or more addresses:
http://www.postfix.org/ADDRESS_REWRITING_README.html#virtual

virtual_mailbox_maps map addresses in virtual domains into pathnames where mailboxes are located:
http://www.postfix.org/virtual.8.html

so, they have quite different usage.
For example:

/usr/local/etc/postfix/vmailbox
       validu...@example.com whatever

/usr/local/etc/postfix/vuser
       validu...@example.com dovecotu...@example.com

In my case, these two tables will always match on the LHS.

Just wondering whether there any reason not to use the virtual_alias table for
both purposes?  It would make synchronisation with the dovecot users DB just a
little easier.

you don't need synchronization, and you apparently don't need virtual_alias_maps in this case.

virtual_mailbox_maps = hash:/usr/local/etc/postfix/vuser
virtual_alias_maps = hash:/usr/local/etc/postfix/vuser

(Mail sent directly to dovecotu...@example.com should be rejected.)

you must take care of this differently.

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
"To Boot or not to Boot, that's the question." [WD1270 Caviar]

Reply via email to