Skip to content

Add lazy_expunge to mail_plugins for imapย #6558

@pstray

Description

@pstray

Contribution guidelines

I've found a bug and checked that ...

  • ... I understand that not following the below instructions will result in immediate closure and/or deletion of my issue.
  • ... I have understood that this bug report is dedicated for bugs, and not for support-related inquiries.
  • ... I have understood that answers are voluntary and community-driven, and not commercial support.
  • ... I have verified that my issue has not been already answered in the past. I also checked previous issues.

Description

Setting up lazy_expunge does not work as intended, as the config does not load the lazy_expunge plugin for the imap protocol.  Currently the modules for imap are loaded from mail_plugins_imap, a file generated in data/Dockerfiles/dovecot/docker-entrypoint.sh

Alternatively, fix the config to use the 'mail_plugins = $mail_plugins foo bar'-syntax for extra modules in the imap and lmtp protocols (as the lazy_expunge plugin is in top-level list)

Logs:

dovecot does not produce logs for this issue.

Steps to reproduce:

1. Add config to extra.conf as mentioned on https://docs.mailcow.email/manual-guides/Dovecot/u_e-dovecot-lazy_expunge/
2. No EXPUNGED-folder is created on disk when expunging, the files just vanish

Which branch are you using?

master

Which architecture are you using?

x86

Operating System:

Debian 12

Server/VM specifications:

not relevant

Is Apparmor, SELinux or similar active?

not relevant

Virtualization technology:

not relevant

Docker version:

not relevant

docker-compose version or docker compose version:

not relevant

mailcow version:

2025-05

Reverse proxy:

not relevant

Logs of git diff:

non relevant

Logs of iptables -L -vn:

not relevant

Logs of ip6tables -L -vn:

not relevant

Logs of iptables -L -vn -t nat:

not relevant

Logs of ip6tables -L -vn -t nat:

not relevant

DNS check:

not relevant

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneverstaleBot doesn't mark the issue or PR as stale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions