Hi, The question can perhaps be made more generic like this: Can dovecot generate a *specific* NDR (or an autoreply) for accounts that meet a specific criterium, such as: - user account was found under OU=to-delete,CN=company... contrary to the regular location CN=Users,CN=company... We would like to move to-be-deleted users to this container, before actually deleting them. That gives us an easy way to revert, if the deletion turns out to be erroneous. We could do that with via a sieve config for those accounts, but if dovecot could send a "delivery failure"-type specific for those accounts (with instructions who to contact to revert the situation) it would be very easy: only move the user to the specific OU, and have the system do the rest. Can this be done? (dovecot 2.1.17 on wheezy, yes we know we should upgrade, and we also will, but it runs rock solid...) MJ
That's something you probably want to do on the edge instead of message store, so a better place might be relocated_maps if you use Postfix. With that you can easily customize your ldap search base for accounts-to-be-deleted OU... T. On Mon, Jan 29, 2018 at 06:53:20PM +0100, lists wrote:> Hi, > > The question can perhaps be made more generic like this: > > Can dovecot generate a *specific* NDR (or an autoreply) for accounts > that meet a specific criterium, such as: > - user account was found under OU=to-delete,CN=company... > contrary to the regular location CN=Users,CN=company... > > We would like to move to-be-deleted users to this container, before > actually deleting them. That gives us an easy way to revert, if the > deletion turns out to be erroneous. > > We could do that with via a sieve config for those accounts, but if > dovecot could send a "delivery failure"-type specific for those > accounts (with instructions who to contact to revert the situation) > it would be very easy: only move the user to the specific OU, and > have the system do the rest. > > Can this be done? > > (dovecot 2.1.17 on wheezy, yes we know we should upgrade, and we > also will, but it runs rock solid...) > > MJ
Hi Tomas, Thanks for your reply. We are using postfix yes, thanks for the tip! MJ On 30-1-2018 14:27, Tomas Habarta wrote:> > That's something you probably want to do on the edge instead of message store, so a better place might be relocated_maps if you use Postfix. With that you can easily customize your ldap search base for accounts-to-be-deleted OU... > > T. > > On Mon, Jan 29, 2018 at 06:53:20PM +0100, lists wrote: >> Hi, >> >> The question can perhaps be made more generic like this: >> >> Can dovecot generate a *specific* NDR (or an autoreply) for accounts >> that meet a specific criterium, such as: >> - user account was found under OU=to-delete,CN=company... >> contrary to the regular location CN=Users,CN=company... >> >> We would like to move to-be-deleted users to this container, before >> actually deleting them. That gives us an easy way to revert, if the >> deletion turns out to be erroneous. >> >> We could do that with via a sieve config for those accounts, but if >> dovecot could send a "delivery failure"-type specific for those >> accounts (with instructions who to contact to revert the situation) >> it would be very easy: only move the user to the specific OU, and >> have the system do the rest. >> >> Can this be done? >> >> (dovecot 2.1.17 on wheezy, yes we know we should upgrade, and we >> also will, but it runs rock solid...) >> >> MJ