Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to extend mail_plugins via extra.conf #6207

Open
santo74 opened this issue Dec 12, 2024 · 3 comments
Open

Allow to extend mail_plugins via extra.conf #6207

santo74 opened this issue Dec 12, 2024 · 3 comments
Labels

Comments

@santo74
Copy link

santo74 commented Dec 12, 2024

Summary

As per the documentation you shouldn't change the dovecot.conf file directly but instead put your modifications in a file extra.conf

However, this doesn't work when you need to extend the mail_plugins (see below for more details)

Motivation

Extending the mail_plugins variable is necessary when you want to make use of the dovecot virtual plugin, e.g. in order to define a virtual "All Mail" folder or any other virtual folder for that matter.

Right now, to get this working, you need to modify the dovecot.conf file directly which isn't in line with the recommendations because it can be overwritten after an update.

Additional context

Adding

mail_plugins = $mail_plugins virtual

in extra.conf should append the "virtual" plugin to the default list of plugins defined in dovecot.conf, but instead it results in the following error:

mailcowdockerized-dovecot-mailcow-1  | doveconf: Warning: /etc/dovecot/extra.conf line 2: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 181 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 181)

mailcowdockerized-dovecot-mailcow-1  | doveconf: Warning: /etc/dovecot/extra.conf line 2: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 181 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 181)

mailcowdockerized-dovecot-mailcow-1  | doveconf: Warning: /etc/dovecot/extra.conf line 2: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 181 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 181)

mailcowdockerized-dovecot-mailcow-1  | doveconf: Warning: /etc/dovecot/extra.conf line 2: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 181 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 181)

mailcowdockerized-dovecot-mailcow-1  | doveconf: Warning: /etc/dovecot/extra.conf line 2: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 181 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 181)

mailcowdockerized-dovecot-mailcow-1  | doveconf: Warning: /etc/dovecot/extra.conf line 2: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 181 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 181
@DerLinkman
Copy link
Member

That is actually more a bug then a enhancement as this should not behave like this.

@santo74
Copy link
Author

santo74 commented Dec 13, 2024

Thanks for confirming the issue.
Any chance this will be fixed in the next release?

@DerLinkman
Copy link
Member

Nope the next release is frozen already. January at earliest then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants