Hi, Aki Tuomi.
I want all modules to be loaded from /etc/dovecot/modules. The thing is that if I specify loading modules from /nix/store/wb885d6w5dfchg9v481f55zj4a2p3r89-dovecot-2.3.21.1/etc/dovecot/modules directory, it will fail to load the sieve module, which is located at /nix/store/a2nk4xa66qfv1x2vhils0npwyyyasv4b7-dovecot-pigeonhole-0.5.21.1/etc/dovecot/modules directory.
That's why NixOS came up with a workaround
they put symlinks to the core and extended modules in the /etc/dovecot/modules directory.
Now it is necessary to patch the file src/config/config-parser.h to specify where to load additional files from. I would like to get rid of patches completely and use the configuration file to specify where to load additional modules from.
PR in NixOS: https://github.com/NixOS/nixpkgs/pull/387642
Sorry, I still haven't figured out which email and address to write to so I don't break the email chain in mailman.
Aki Tuomi via dovecot писал(а) 2025-03-07 10:44:
I am bit confused, do you want moduledir to be /etc/dovecot/modules or /nix/store/.../etc/dovecot/modules?
The error you are getting means the module isn't in that directory, or cannot find it's dependencies.
Also why put modules into /etc?
Aki
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org
-- Best regards, Lafiel mailto:lafiel@elven.pw