On Sep 11, 2025, at 11:25, Aki Tuomi via dovecot <dovecot@dovecot.org>
   wrote:

     Hi!

     Usually global acls (with acl plugin) are used to prevent access to a
     folder. You can use "Deleted Messages" owner in global acl file to block
     access

   I'm not trying to deny access to the folder.  I'm trying to hide it, so it
   doesn't show up in the client account configuration (OSX Mail)

     and alias_for only works for namespaces.

   I'm using `namespace inbox`

     There is no "mailbox plugin", I think you've been misguided by some LLM
     there.

   I've been following instructions from Perplexity.  this is the first time
   it has failed me like this

     Also you could explain a bit what kind of problems you have with Sieve

   well, so far I haven't been able to make it work.  I put this into
   /var/lib/dovecot/sieve/global:
   require "fileinto";
   if header :matches "X-Spam-Level" "*****" {
       discard;
       stop;
   }
   if header :matches "X-Spam-Level" "*" {
       fileinto "Junk";
       stop;
   }
   made sure LMTP is enabled and configured sieve:
   protocols = imap pop3 lmtp sieve
   protocol sieve {
     mail_plugins = " sieve"
   }
   plugin {
     sieve = file:~/sieve;active=~/.dovecot.sieve
     sieve_before = /var/lib/dovecot/sieve/global
     sieve_execute_bin_dir = /usr/lib/dovecot/sieve-execute
     sieve_global_extensions = +vnd.dovecot.execute +vnd.dovecot.environment
   +variables
     sieve_plugins = sieve_extprograms
     sieve_trace_debug = yes
     sieve_trace_dir = /tmp/sieve
     sieve_trace_level = matching
   }
   but it hasn't filed anything.  as you can see I enabled a trace directory:
   # ls /tmp/sieve
   drwxrwxrwx  2 root root  40 Sep 10 16:09 ./
   but it remains empty

     Aki

       On 11/09/2025 21:02 EEST Erick Calder via dovecot
       <dovecot@dovecot.org> wrote:

       hi.  I'm running on Fedora 42 and want to hide the Deleted Messages
       folder (because I want to use Trash instead).  unfortunately this
       fails:

       mailbox "Deleted Messages" {
          hidden = yes
        }

       which I understand depends on the "mailbox" plugin.  however, when I
       look in /var/lib64/dovecot, I don't see any such plugin.  I also
       cannot find in the repositories any RPM that provides it.  I
       understand it may be baked into the core binary but if so, enabling it
       should work, and yet if I do enable it, I get the error below:

       Sep 11 10:06:01 mail dovecot[739762]: imap(ekkis): Error: Plugin
       'mailbox' not found from directory /usr/lib64/dovecot

       I would also like to use the alias_for but that also fails. sigh.  I'm
       also struggling to make Sieve work.  I've produced a sysreport (see:
       https://arix.com/tmp/dovecot-sysreport-mail.arix.com-1757611127.tar.gz)
       and you'll find my config file below:

       please help?

       # 2.3.21.1 (d492236fa0): /etc/dovecot/dovecot.conf
       # Pigeonhole version 0.5.21.1 (49005e73)
       # OS: Linux 6.15.9-201.fc42.x86_64 x86_64 Fedora release 42 (Adams)
       # Hostname: mail.arix.com
       first_valid_uid = 1000
       mail_debug = yes
       mail_location = maildir:~/mail:LAYOUT=fs
       managesieve_notify_capability = mailto
       managesieve_sieve_capability = fileinto reject envelope
       encoded-character vacation subaddress comparator-i;asc
       ii-numeric relational regex imap4flags copy include body enotify
       environment mailbox date index ihave duplicat
       e mime foreverypart extracttext
       mbox_write_locks = fcntl
       namespace inbox {
        inbox = yes
        location =
        mailbox "Deleted Messages" {
          special_use = \Trash
        }
        mailbox Drafts {
          special_use = \Drafts
        }
        mailbox Junk {
          special_use = \Junk
        }
        mailbox Sent {
          special_use = \Sent
        }
        mailbox "Sent Messages" {
          special_use = \Sent
        }
        prefix = INBOX/
        separator = /
       }
       passdb {
        driver = pam
       }
       plugin {
        sieve = file:~/sieve;active=~/.dovecot.sieve
        sieve_before = /var/lib/dovecot/sieve/global
        sieve_execute_bin_dir = /usr/lib/dovecot/sieve-execute
        sieve_global_extensions = +vnd.dovecot.execute
       +vnd.dovecot.environment +variables
        sieve_plugins = sieve_extprograms
        sieve_trace_debug = yes
        sieve_trace_dir = /tmp/sieve
        sieve_trace_level = matching
       }
       protocols = imap pop3 lmtp sieve
       service auth {
        unix_listener /var/spool/postfix/private/auth {
          group = postfix
          mode = 0660
          user = postfix
        }
       }
       service lmtp {
        inet_listener lmtp {
          address = localhost
          port = 24
        }
       ssl = required
       ssl_cert = </etc/letsencrypt/live/mail.arix.com/fullchain.pem
       ssl_cipher_list = PROFILE=SYSTEM
       ssl_key = # hidden, use -P to show it
       userdb {
        driver = passwd
       }
       protocol sieve {
        mail_plugins = " sieve"
       }

         On Sep 11, 2025, at 10:45, dovecot-requ...@dovecot.org wrote:

         Welcome to the "dovecot" mailing list!

         To post to this list, send your message to:

         dovecot@dovecot.org

         You can unsubscribe or make adjustments to your options via email by
         sending a message to:

         dovecot-requ...@dovecot.org

         with the word 'help' in the subject or body (don't include the
         quotes), and you will get back a message with instructions.  You
         will
         need your password to change your options, but for security
         purposes,
         this password is not included here.  If you have forgotten your
         password you will need to reset it via the web UI.

         hi.  I'm running on Fedora 42 and want to hide the Deleted Messages
       folder
         (because I want to use Trash instead).  unfortunately this fails:
         mailbox "Deleted Messages" {
             hidden = yes
           }
         which I understand depends on the "mailbox" plugin.  however, when I
       look
         in /var/lib64/dovecot, I don't see any such plugin.  I also cannot
       find in
         the repositories any RPM that provides it.  I understand it may be
       baked
         into the core binary but if so, enabling it should work, and yet if
       I do
         enable it, I get the error below:
         Sep 11 10:06:01 mail dovecot[739762]: imap(ekkis): Error: Plugin
       'mailbox'
         not found from directory /usr/lib64/dovecot
         I would also like to use the alias_for but that also fails. sigh.
        I'm
         also struggling to make Sieve work.  I've produced a sysreport (see:
         https://arix.com/tmp/dovecot-sysreport-mail.arix.com-1757611127.tar.gz)
         and you'll find my config file below:
         please help?
         # 2.3.21.1 (d492236fa0): /etc/dovecot/dovecot.conf
         # Pigeonhole version 0.5.21.1 (49005e73)
         # OS: Linux 6.15.9-201.fc42.x86_64 x86_64 Fedora release 42 (Adams)
         # Hostname: mail.arix.com
         first_valid_uid = 1000
         mail_debug = yes
         mail_location = maildir:~/mail:LAYOUT=fs
         managesieve_notify_capability = mailto
         managesieve_sieve_capability = fileinto reject envelope
       encoded-character
         vacation subaddress comparator-i;asc
         ii-numeric relational regex imap4flags copy include body enotify
         environment mailbox date index ihave duplicat
         e mime foreverypart extracttext
         mbox_write_locks = fcntl
         namespace inbox {
           inbox = yes
           location =
           mailbox "Deleted Messages" {
             special_use = \Trash
           }
           mailbox Drafts {
             special_use = \Drafts
           }
           mailbox Junk {
             special_use = \Junk
           }
           mailbox Sent {
             special_use = \Sent
           }
           mailbox "Sent Messages" {
             special_use = \Sent
           }
           prefix = INBOX/
           separator = /
         }
         passdb {
           driver = pam
         }
         plugin {
           sieve = file:~/sieve;active=~/.dovecot.sieve
           sieve_before = /var/lib/dovecot/sieve/global
           sieve_execute_bin_dir = /usr/lib/dovecot/sieve-execute
           sieve_global_extensions = +vnd.dovecot.execute
       +vnd.dovecot.environment
         +variables
           sieve_plugins = sieve_extprograms
           sieve_trace_debug = yes
           sieve_trace_dir = /tmp/sieve
           sieve_trace_level = matching
         }
         protocols = imap pop3 lmtp sieve
         service auth {
           unix_listener /var/spool/postfix/private/auth {
             group = postfix
             mode = 0660
             user = postfix
           }
         }
         service lmtp {
           inet_listener lmtp {
             address = localhost
             port = 24
           }
         ssl = required
         ssl_cert = </etc/letsencrypt/live/mail.arix.com/fullchain.pem
         ssl_cipher_list = PROFILE=SYSTEM
         ssl_key = # hidden, use -P to show it
         userdb {
           driver = passwd
         }
         protocol sieve {
           mail_plugins = " sieve"
         }

           On Sep 11, 2025, at 10:45, dovecot-requ...@dovecot.org wrote:
           Welcome to the "dovecot" mailing list!

           To post to this list, send your message to:

            dovecot@dovecot.org

           You can unsubscribe or make adjustments to your options via email
       by
           sending a message to:

            dovecot-requ...@dovecot.org

           with the word 'help' in the subject or body (don't include the
           quotes), and you will get back a message with instructions.  You
       will
           need your password to change your options, but for security
       purposes,
           this password is not included here.  If you have forgotten your
           password you will need to reset it via the web UI.
       _______________________________________________
       dovecot mailing list -- dovecot@dovecot.org
       To unsubscribe send an email to dovecot-le...@dovecot.org

     _______________________________________________
     dovecot mailing list -- dovecot@dovecot.org
     To unsubscribe send an email to dovecot-le...@dovecot.org
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org

Reply via email to