Hi, Aki Tuomi.
With this configurations: --with-moduledir=/nix/store/fgjwcnzz4ll6jjah8mpzfxpc4asa600q-dovecot-2.3.21/etc/dovecot/modules DESTDIR=/nix/store/fgjwcnzz4ll6jjah8mpzfxpc4asa600q-dovecot-2.3.21 mail_plugin_dir=/nix/store/fgjwcnzz4ll6jjah8mpzfxpc4asa600q-dovecot-2.3.21/etc/dovecot/modules
Error: doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf: protocols: Unknown protocol: sieve
This was only variant that worked. Need change option mail_plugin_dir (created symbolic links): mail_plugin_dir = /etc/dovecot/modules
and replace in file src/config/config-parser.h to: #define CONFIG_MODULE_DIR "/etc/dovecot/modules/settings"
I need to avoid hard linking to the /etc/dovecot/modules path and applying a patch to source code. For example, specify in configuration mail_plugin_dir=/nix/store/.../lib/dovecot/modules, which contains all the necessary plugins by creating symbolic links. The problem is that the src/config/config-parser.h file ignores the mail_plugin_dir parameter, which is used to load additional dovecot modules.
Aki Tuomi via dovecot писал(а) 2025-03-31 08:44:
Have you tried --with-moduledir=/etc/dovecot/modules when doing ./configure and use make DESTDIR=/nix/store/foobar to install things elsewhere.
Aki
-- Best regards, Lafiel mailto:lafiel@elven.pw