I have finally resolved this. Dovecot was looking for sieve rules in
.dovecot.sieve. But they are (and have been for a long time) in
active-script.sieve.
This is kind of described in the documentation, although after reading
it several times, I still don't altogether understand it! Including not
seeing why a symlink is helpful.
To fix it, I now have:
sieve_script personal {
driver = file
sieve_script_path =
/var/vmail/sieve/%{user|domain}/%{user|username}/scripts
sieve_script_active_path =
/var/vmail/sieve/%{user|domain}/%{user|username}/active-script.sieve
}
Martin
On 28/09/2025 08:28, Aki Tuomi via dovecot wrote:
> What exactly is not working? Can you attach doveconf -n output and, if
> necessary, log entries?
>
> Aki
>
> On 28/09/2025 10:09 EEST Martin Brampton via dovecot
> <[1][email protected]> wrote:
>
>
> Is there any answer to my problem with sieve not working with Dovecot
> 2.4.1 from Debian 13?
>
> I have twice been told that it will work if my configuration includes:
>
> protocol lmtp { mail_plugins {
> sieve = yes }
>
> }}
>
> But that has always been present. There is one and only one entry for
> protocol lmtp.
>
> It still makes no sense to me that logs complain about a non-existent
> module - it is not referenced anywhere in the configuration.
>
> Is there any solution or must I downgrade to Dovecot 2.3 to have a
> properly working system?
>
> Best regards, Martin
>
> --
>
> Martin Brampton, Black Sheep Research
> [2][email protected]
> [3]https://black-sheep-research.com
> Tel: +44 1653 524272
> Mobile: +44 7771 787010
> Office: 4 York Road, Malton, North Yorkshire, YO17 6AX, UK.
>
>
> On Sunday, Sep 28, 2025 at 7:26 am, Aki Tuomi via dovecot
> <[4][email protected] (mailto:[5][email protected])> wrote:
>
> On 28/09/2025 04:36 EEST John via dovecot <[6][email protected]>
> wrote:
>
> >
>
> Debian dovecot 2.4.1 /etc/dovecot/conf.d/20-lmtp.conf has the lines
> "mail_plugin" and "sieve = yes" commented-out by default.
>
> dovecot.conf should have a line at the bottom "!include_try
> local.conf". Uncomment this line. Place the above lines in
> /etc/dovecot/local.conf.
>
> Always run doveconf for syntax correctness. Invalid syntax in
> dovecot.conf will log.
>
> FYI: Many dovecot sections and variables can be overridden by later
> occurrences, but some are not. I run dovecot on Debian. Debian
> dovecot.conf concatenates conf.d/* into one file. The "passwd pam" {
> ... } cannot be overridden.
> Always run doveconf to see how many passwd and userdb sections
> show-up.
>
> Pro-tip: Remove the include conf.d/* lines in dovecot.conf. and just
> manually concatenate the conf.d/* lines in dovecot.conf. Everything
> in one place and your configuration won't break when an upgrade
> occurs. Do you want to have many changes in multiple files under
> conf.d/*?
>
> I filed a security bug with dovecot 2.4.1. I have not heard back. I
> read that I am supposed to file this kind of bug with the Linux
> Distro, Debian. The bug is 2.4.1 will give the same uid/gid to any
> account after the first authentication. Everyone else gets the same
> uid/gid and all clients start downloading the folders/email of this
> first uid/gid.
>
> 2.4.1 is not production ready.
>
> Stay with 2.3.+ until it is ready.
>
> Such bug has not been reported to us yet, but it sounds overly broad.
> Lets see if someone sends this to our way as well.
>
> Aki
>
> _______________________________________________
> dovecot mailing list -- [7][email protected]
> To unsubscribe send an email to [8][email protected]
>
> Is there any answer to my problem with sieve not working with Dovecot
> 2.4.1 from Debian 13?
> I have twice been told that it will work if my configuration includes:
> protocol lmtp {
> mail_plugins {
>
>
> sieve = yes
> }
> }}
> But that has always been present. There is one and only one entry for
> protocol lmtp.
> It still makes no sense to me that logs complain about a non-existent
> module - it is not referenced anywhere in the configuration.
> Is there any solution or must I downgrade to Dovecot 2.3 to have a
> properly working system?
> Best regards, Martin
> --
> Martin Brampton, Black Sheep Research
> [9][email protected]
> [10]https://black-sheep-research.com
> Tel: +44 1653 524272
> Mobile: +44 7771 787010
> Office: 4 York Road, Malton, North Yorkshire, YO17 6AX, UK.
>
> On Sunday, Sep 28, 2025 at 7:26 am, Aki Tuomi via dovecot
> <[1][11][email protected]> wrote:
>
> On 28/09/2025 04:36 EEST John via dovecot <[12][email protected]>
> wrote:
>
> Debian dovecot 2.4.1 /etc/dovecot/conf.d/20-lmtp.conf has the lines
> "mail_plugin" and "sieve = yes" commented-out by default.
>
> dovecot.conf should have a line at the bottom "!include_try
> local.conf". Uncomment this line. Place the above lines in
> /etc/dovecot/local.conf.
>
> Always run doveconf for syntax correctness. Invalid syntax in
> dovecot.conf will log.
>
> FYI: Many dovecot sections and variables can be overridden by later
> occurrences, but some are not. I run dovecot on Debian. Debian
> dovecot.conf concatenates conf.d/* into one file. The "passwd pam" {
> ... } cannot be overridden.
> Always run doveconf to see how many passwd and userdb sections
> show-up.
>
> Pro-tip: Remove the include conf.d/* lines in dovecot.conf. and just
> manually concatenate the conf.d/* lines in dovecot.conf. Everything in
> one place and your configuration won't break when an upgrade occurs.
> Do you want to have many changes in multiple files under conf.d/*?
>
> I filed a security bug with dovecot 2.4.1. I have not heard back. I
> read that I am supposed to file this kind of bug with the Linux
> Distro, Debian. The bug is 2.4.1 will give the same uid/gid to any
> account after the first authentication. Everyone else gets the same
> uid/gid and all clients start downloading the folders/email of this
> first uid/gid.
>
> 2.4.1 is not production ready.
>
> Stay with 2.3.+ until it is ready.
>
> Such bug has not been reported to us yet, but it sounds overly broad.
> Lets see if someone sends this to our way as well.
>
> Aki
>
> _______________________________________________
> dovecot mailing list -- [13][email protected]
> To unsubscribe send an email to [14][email protected]
>
> References
>
> Visible links
> 1. mailto:[15][email protected]
> _______________________________________________
> dovecot mailing list -- [16][email protected]
> To unsubscribe send an email to [17][email protected]
>
> References
>
> Visible links
> 1. mailto:[email protected]
> 2. mailto:[email protected]
> 3. https://black-sheep-research.com/
> 4. mailto:[email protected]
> 5. mailto:[email protected]
> 6. mailto:[email protected]
> 7. mailto:[email protected]
> 8. mailto:[email protected]
> 9. mailto:[email protected]
> 10. https://black-sheep-research.com/
> 11. mailto:[email protected]
> 12. mailto:[email protected]
> 13. mailto:[email protected]
> 14. mailto:[email protected]
> 15. mailto:[email protected]
> 16. mailto:[email protected]
> 17. mailto:[email protected]
> _______________________________________________
> dovecot mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]