Sieve is not working. Before the upgrade to Debian 13 from Debian 12,
   sieve was working fine. Mail was being moved to different folders
   according to the rules. The rules have not changed, and have been
   revalidated subsequent to the move. Despite logging, there is no sign that
   sieve is ever running, although test mail messages qualify for being
   moved.

   The output from doveconf -n is attached. The only mention of sieve in
   /var/log/mail.log is:
   Sep 28 04:28:02 mx dovecot[1861243]: master: Dovecot v2.4.1-4 (7d8c0e5759)
   starting up for imap, lmtp, sieve, pop3 (core dumps disabled)

   The only recent mention of sieve in any log (apart from dpkg) is:
   mail.log:Sep 28 04:28:02 mx dovecot[1861243]: master: Dovecot v2.4.1-4
   (7d8c0e5759) starting up for imap, lmtp, sieve, pop3 (core dumps disabled)

   Older logs show testing actions, but no actual sieve operations.

   managesieve is working.

   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]<[1]dovecot@dovecot.org> 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]2]mar...@black-sheep-research.com
      [3][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]<[4]dovecot@dovecot.org (mailto:[5]dovecot@dovecot.org)> wrote:

          On 28/09/2025 04:36 EEST John via dovecot [5]<[6]dovecot@dovecot.org>
          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 -- [[6]7]dovecot@dovecot.org
        To unsubscribe send an email to [[7]8]dovecot-le...@dovecot.org

      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
      [[8]9]mar...@black-sheep-research.com
      [10][9]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
      [10]<[1][11]dovecot@dovecot.org> wrote:

      On 28/09/2025 04:36 EEST John via dovecot [11]<[12]dovecot@dovecot.org>
      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 -- [[12]13]dovecot@dovecot.org
      To unsubscribe send an email to [[13]14]dovecot-le...@dovecot.org

      References

      Visible links
      1. mailto:[[14]15]dovecot@dovecot.org
      _______________________________________________
      dovecot mailing list -- [[15]16]dovecot@dovecot.org
      To unsubscribe send an email to [[16]17]dovecot-le...@dovecot.org

 References

    Visible links
    1. [17]mailto:dovecot@dovecot.org
    2. [18]mailto:mar...@black-sheep-research.com
    3. [19]https://black-sheep-research.com/
    4. [20]mailto:dovecot@dovecot.org
    5. [21]mailto:dovecot@dovecot.org
    6. [22]mailto:dovecot@dovecot.org
    7. [23]mailto:dovecot@dovecot.org
    8. [24]mailto:dovecot-le...@dovecot.org
    9. [25]mailto:mar...@black-sheep-research.com
   10. [26]https://black-sheep-research.com/
   11. [27]mailto:dovecot@dovecot.org
   12. [28]mailto:dovecot@dovecot.org
   13. [29]mailto:dovecot@dovecot.org
   14. [30]mailto:dovecot-le...@dovecot.org
   15. [31]mailto:dovecot@dovecot.org
   16. [32]mailto:dovecot@dovecot.org
   17. [33]mailto:dovecot-le...@dovecot.org
 _______________________________________________
 dovecot mailing list -- [34]dovecot@dovecot.org
 To unsubscribe send an email to [35]dovecot-le...@dovecot.org

   --

                      Martin Brampton

                    Director

                    Black Sheep Research

   [36]Black Sheep
   Research icon    [37]Phone icon  [38]+44 1653 524272 | [39]+44 7771 787010
                    [40]Email icon  [41]mar...@black-sheep-research.com
                    [42]Website     [43]https://black-sheep-research.com
                    link icon
                    [44]Address     4 York Road, Malton, YO17 6AX, UK
                    icon


References

   Visible links
   1. mailto:[1]dovecot@dovecot.org
   2. mailto:2]mar...@black-sheep-research.com
   3. https://black-sheep-research.com/
   4. 
file:///tmp/tmppjkhbimq/mailto:[4]dovecot@dovecot.org(mailto:[5]dovecot@dovecot.org)
   5. mailto:[6]dovecot@dovecot.org
   6. mailto:7]dovecot@dovecot.org
   7. mailto:8]dovecot-le...@dovecot.org
   8. mailto:9]mar...@black-sheep-research.com
   9. https://black-sheep-research.com/
  10. mailto:[1][11]dovecot@dovecot.org
  11. mailto:[12]dovecot@dovecot.org
  12. mailto:13]dovecot@dovecot.org
  13. mailto:14]dovecot-le...@dovecot.org
  14. mailto:15]dovecot@dovecot.org
  15. mailto:16]dovecot@dovecot.org
  16. mailto:17]dovecot-le...@dovecot.org
  17. mailto:dovecot@dovecot.org
  18. mailto:mar...@black-sheep-research.com
  19. https://black-sheep-research.com/
  20. mailto:dovecot@dovecot.org
  21. mailto:dovecot@dovecot.org
  22. mailto:dovecot@dovecot.org
  23. mailto:dovecot@dovecot.org
  24. mailto:dovecot-le...@dovecot.org
  25. mailto:mar...@black-sheep-research.com
  26. https://black-sheep-research.com/
  27. mailto:dovecot@dovecot.org
  28. mailto:dovecot@dovecot.org
  29. mailto:dovecot@dovecot.org
  30. mailto:dovecot-le...@dovecot.org
  31. mailto:dovecot@dovecot.org
  32. mailto:dovecot@dovecot.org
  33. mailto:dovecot-le...@dovecot.org
  34. mailto:dovecot@dovecot.org
  35. mailto:dovecot-le...@dovecot.org
  38. file:///tmp/tmppjkhbimq/tel:+44 1653 524272
  39. file:///tmp/tmppjkhbimq/tel:+44 7771 787010
  41. mailto:mar...@black-sheep-research.com
  43. https://black-sheep-research.com/
# 2.4.1-4 (7d8c0e5759): /etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.1-4 (0a86619f)
# OS: Linux 6.12.43+deb13-cloud-amd64 x86_64 Debian 13.1 ext4
# Hostname: mx.yorkshiremail.com
# 4 default setting changes since version 2.4.0
dovecot_config_version = 2.4.0
auth_debug_passwords = yes
auth_mechanisms = plain login
auth_verbose = yes
dovecot_storage_version = 2.4.0
fts_autoindex = yes
fts_autoindex_max_recent_msgs = 999
fts_search_add_missing = yes
mail_driver = maildir
mail_gid = vmail
mail_home = /var/vmail/mailboxes/%{user|domain}/%{user|username}
mail_path = /var/vmail/mailboxes/%{user|domain}/%{user|username}/mail
mail_privileged_group = mail
mail_uid = vmail
protocols {
  imap = yes
  lmtp = yes
  sieve = yes
  pop3 = yes
}
sieve_plugins = sieve_imapsieve sieve_extprograms
sieve_trace_addresses = yes
sieve_trace_debug = yes
sql_driver = mysql
mysql 127.0.0.1 {
  dbname = vimbadmin
  password = # hidden, use -P to show it
  user = vimbadmin
}
passdb sql {
  default_password_scheme = SHA512-CRYPT
  query = SELECT username as user, password as password, concat('*:bytes=', 
quota) as userdb_quota_rule FROM mailbox WHERE username = '%{user}' AND active 
= '1'
}
userdb sql {
  iterate_query = SELECT userid AS username, domain FROM mailbox INNER JOIN 
domain ON mailbox.Domain_id = domain.d
  query = SELECT 'vmail' as uid, 'vmail' as gid, 
'/var/vmail/mailboxes/%{user|domain}/%{user|username}' as home, 
concat('*:bytes=', quota) as quota_rule FROM mailbox WHERE username = '%{user}'
}
namespace inbox {
  inbox = yes
  mailbox Drafts {
    special_use = "\\Drafts"
  }
  mailbox Junk {
    special_use = "\\Junk"
  }
  mailbox Trash {
    special_use = "\\Trash"
  }
  mailbox Sent {
    special_use = "\\Sent"
  }
  mailbox "Sent Messages" {
    special_use = "\\Sent"
  }
}
service imap-login {
  inet_listener imap {
  }
  inet_listener imaps {
  }
}
service pop3-login {
  inet_listener pop3 {
  }
  inet_listener pop3s {
  }
}
service submission-login {
  inet_listener submission {
  }
  inet_listener submissions {
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
}
service imap {
}
service pop3 {
}
service submission {
}
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
}
service auth-worker {
}
service dict {
  unix_listener dict {
  }
}
ssl_server {
  cert_file = /etc/certhelper/certs/yorkshiremail.com/fullchain.pem
  key_file = /etc/certhelper/certs/yorkshiremail.com/privkey.pem
}
protocol imap {
  mail_plugins {
    notify = yes
    mail_log = yes
    imap_sieve = yes
  }
}
protocol lmtp {
  auth_username_format = %{user}
  mail_plugins {
    sieve = yes
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
  inet_listener sieve_deprecated {
    port = 2000
  }
}
service managesieve {
}
sieve_script personal {
  driver = file
  path = /var/vmail/sieve/%{user|domain}/%{user|username}
}
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to