G gastonserrano New member Joined Aug 12, 2026 Messages 1 Wednesday at 2:19 PM #1 Hi, I need to enable the Dovecot Lazy Expunge plugin; how do I do that via the panel or DirectAdmin?
Imtek Verified User Joined Dec 11, 2005 Messages 221 Location The Netherlands Today at 3:33 AM #2 With a default Dovecot 2.4 installation expunge seems to be included with the Dovecot installation but not activated yet. This is a quite simple implementation. The libraries are there by default (lazy expunge is part of the Dovecot core installation): Code: find "$(doveconf -h mail_plugin_dir)" -type f | grep -E 'lazy|expunge' /usr/lib64/dovecot/lib02_lazy_expunge_plugin.a /usr/lib64/dovecot/lib02_lazy_expunge_plugin.so /usr/lib64/dovecot/lib02_lazy_expunge_plugin.la You would need to add this into this config file /etc/dovecot/conf.d/95-lazy-expunge.conf: Code: mail_plugins { lazy_expunge = yes } lazy_expunge_mailbox = .EXPUNGED lazy_expunge_only_last_instance = yes namespace inbox { mailbox .EXPUNGED { autoexpunge = 30days autoexpunge_max_mails = 100000 } } mailbox .EXPUNGED { quota_ignore = yes } After that run: Code: systemctl restart dovecot
With a default Dovecot 2.4 installation expunge seems to be included with the Dovecot installation but not activated yet. This is a quite simple implementation. The libraries are there by default (lazy expunge is part of the Dovecot core installation): Code: find "$(doveconf -h mail_plugin_dir)" -type f | grep -E 'lazy|expunge' /usr/lib64/dovecot/lib02_lazy_expunge_plugin.a /usr/lib64/dovecot/lib02_lazy_expunge_plugin.so /usr/lib64/dovecot/lib02_lazy_expunge_plugin.la You would need to add this into this config file /etc/dovecot/conf.d/95-lazy-expunge.conf: Code: mail_plugins { lazy_expunge = yes } lazy_expunge_mailbox = .EXPUNGED lazy_expunge_only_last_instance = yes namespace inbox { mailbox .EXPUNGED { autoexpunge = 30days autoexpunge_max_mails = 100000 } } mailbox .EXPUNGED { quota_ignore = yes } After that run: Code: systemctl restart dovecot