Page 1 of 1

Problem with Dovecot plugins

Posted: Tue 4. Mar 2025, 23:03
by cr4zyk1d
I'm sure the cause of the problem is within KeyHelp
(Problems not related to KeyHelp belong in the Offtopic forum)

Server operating system + version
(Debian 12.9 (64-bit))

Server virtualization technology used
(KVM)

KeyHelp version + build number
25.0 (Build 3398)

Problem description / error messages

After every update or restart of Dovecot, the configuration is reset to default, removing the fts_xapian plugin. Attempts to add it via local.conf do not work, as dovecot.conf takes priority. Even when creating custom configuration files like 1-my-config.conf, the settings are still overridden.

Expected result

The fts_xapian plugin should remain enabled after an update or restart of Dovecot, allowing fast email search.

Actual result

The fts_xapian plugin is removed, forcing manual reconfiguration after every update.

Steps to reproduce
  • Edit local.conf to add mail plugins.
    Restart Dovecot.
    fts_xapian is not enabled.
    Manually add fts_xapian to dovecot.conf.
    Restart Dovecot, and fts is now enabled.
    After an update, the configuration is reset to default, removing all custom plugins.
    Custom configuration files (e.g., 1-my-config.conf) do not persist settings.
Additional information

The issue occurs because dovecot.conf is overwritten during updates. Attempts to prevent this using local.conf or additional custom config files have failed. A method to permanently retain fts_xapian is needed to avoid manual reconfiguration after each update.

Re: Problem with Dovecot plugins

Posted: Wed 5. Mar 2025, 10:07
by Florian
Hallo,

the local.conf is the rigth place for your own configuration.

Check that it is inclued by dovecot.conf

Re: Problem with Dovecot plugins

Posted: Wed 5. Mar 2025, 13:10
by cr4zyk1d
It's included, but 'mail_plugins =' here forces the config and treats it as a priority, which results in disabling fts_xapian, even though it has its own line in local.conf:

Code: Select all

mail_plugins = $mail_plugins quota fts fts_xapian

Is simply adding this line in local.conf enough? Does it need to be defined anywhere else?
I don't know how to prevent this, but it happens periodically. Here is the dovecot.conf configuration:

Code: Select all

# Dovecot configuration file.
#
# This file was generated by KeyHelp.
# Do not modify this file due it may be may be overridden by future releases.
# You can use 'local.conf' for your own configuration.
#

# Debug mode.
#auth_debug=yes
#mail_debug=yes

# Listen for connections on all IPv4 & IPv6 interfaces.
listen = *, [::]

# Mailbox locations.
mail_location = maildir:/var/mail/vhosts/%d/%n
mail_privileged_group = mail

# Plugins.
mail_plugins = $mail_plugins quota fts fts_xapian

# Include configurations.
!include conf.keyhelp.d/*.conf

# Include custom configurations.
# Put your own custom settings in the following file, it will remain untouched by KeyHelp updates.
!include_try local.conf