Hi,

I am searching for a dynamic mapping solution which allows me to
forward emails to every...@example.com to all valid mailboxes in
example.com
I did not find any dynamic mapping solution for this.

I am almost there, the only thing left is to validate that %u =
everyone.
My current accomplishments:

/etc/postfix/main.cf
====================
virtual_alias_maps = ldap:everyone

everyone_server_host = ldaps://localhost
everyone_version = 3
everyone_search_base = ou=%d,ou=Mail,o=example,c=com
everyone_query_filter = (accountStatus=active)
everyone_result_attribute = mail


The query above works with any destination address sending to all
valid mailboxes. For instance, emails to destination address
bla...@example.com would be send to all mailboxes. The same for
destination address 1...@example.com, and so on.

For only emails sent to every...@example.com to be forwarded to all
mailboxes in example.com, it is necessary to add a filter like
%u=everyone to that ldap query.
I tried the following:
everyone_query_filter = (&(accountStatus=active)(%u=everyone))

But it does not work.


Is there any way to add that %u=everyone filter in the ldap query above?
Or any other way to get the same results and still being dynamic?
I mean dynamic by anything but generating hash alias_maps thru cron
scripts.


Thanks and regards,
Ronie

Reply via email to