What I did is this:
virtual_mailbox_maps = ldap:/etc/postfix/ldap/virtual_mailbox.cf < gets
the recipient from mail property
virtual_alias_maps = ldap:/etc/postfix/ldap/virtual_alias.cf,
< < gets the recipient from mailalias property
ldap:/etc/postfix/ldap/virtual_mailbox.cf, < gets the alias from mail
property
hash:/etc/postfix/virtual_alias < @abc @oldmx
I just use the same ldap config, because I would have either to have the
same config in another ldap file, or having a script that just do the
same (build the 1:1 alias file from ldap)
Le 09/06/2023 à 16:09, Wietse Venema via Postfix-users a écrit :
Jerome BECOT via Postfix-users:
Thank you it works fine !
Here is what I did (I'd like your confirmation on the first that I do
not make a mistake):
- added the virtual_mailbox_maps LDAP config to virtual_alias_maps as
well (thus generating $u...@abc.com -> $u...@abc.com alias, letting the
rule match)
I suppose it "works" but I prefer to use features for their intended
purpose. virtual_mailbox_maps is not for aliasing; that is what
virtual_alias_maps is for.
Thus:
virtual_alias_maps = <map with 1:1 aliases> <map with @abc @oldmx>
Wietse
_______________________________________________
Postfix-users mailing list --postfix-users@postfix.org
To unsubscribe send an email topostfix-users-le...@postfix.org
--
*Jérôme BECOT*<https://www.deveryware.com>
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org