Workaround for rcpt suffix
Hi all!
I'm stuck again, let me start with explaining my setup. The PassDB and UserDB is LDAP (FreeIPA) and I'm using ldap mail attribute to search after the recipient so one user can have multiple mail aliases. So far so good. Next is to have an catchall@domain.tld, that is done via an static userdb backend (I know you are strongly against catchall adresses), and they are delivered to public folders (${mail_location}/domain.tld).
I also use address extension so sort a mail to correct folder (+ sign). Now I need to fix so mail to <mail attr>-sievetest is handled by the user assigned to <mail attr>, is this somehow possible?
//Robban
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 9 May 2016, Robban wrote:
I'm stuck again, let me start with explaining my setup. The PassDB and UserDB is LDAP (FreeIPA) and I'm using ldap mail attribute to search after the recipient so one user can have multiple mail aliases. So far so good. Next is to have an catchall@domain.tld, that is done via an static userdb backend (I know you are strongly against catchall adresses), and they are delivered to public folders (${mail_location}/domain.tld).
I also use address extension so sort a mail to correct folder (+ sign). Now I need to fix so mail to <mail attr>-sievetest is handled by the user assigned to <mail attr>, is this somehow possible?
your userdb query should return the data of "the user assigned to <mail attr>", when Dovecot is to drop messages for <mail attr>-sievetest .
I would add another LDAP attribute, store all "alternate recipient aliases" there and use a ldap filter query to test both attributes. You must return an "user" field in this case.
http://wiki2.dovecot.org/UserDatabase/ExtraFields
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVzF6e3z1H7kL/d9rAQLNOwf/a6DVdZa7vSYJkNWW57C4R3+0SMekiXWs SwyPcfyQeJUW+xCUpKjkUWMVfAI11YlSj1pYxS/Yh2emW8UbKfhHkccrEJf1Sewh CFwT2yOmgAEdEO5YkLFgILpTql7r8nEqx/csjsfdCLDzSJo11rmvRT058LnJ1MdG eTSN7DDNseIcExZE0276lqJGesZFIGNP/q3vwRh8ic+GzFLyQFpLAS/0B3zfHBG7 raMigR7fuggqXhu1sVsz0jRtUFhc5VN5EY30uSMGRotYON2jhQN0b8+hritp0TsY CReWQDX18knRmThKVeZCHFTZTeEf5CNlurujGSg4AJjj/5o5c1ZFMg== =OWh/ -----END PGP SIGNATURE-----
participants (2)
-
Robban
-
Steffen Kaiser