# 2.4.5 (0cbb641e3e): /usr/local/etc/dovecot/dovecot.conf
# Pigeonhole version 2.4.5 (742bb892)
# OS: FreeBSD 15.1-RELEASE-p2 arm64  ufs
# Hostname: test
# 27 default setting changes since version 2.4.2
dovecot_config_version = 2.4.2
auth_mechanisms = plain cram-md5
base_dir = /var/run/home_mail/
dovecot_storage_version = 2.4.0
first_valid_gid = 0
imap_capability = SASL-IR LOGIN-REFERRALS ID ENABLE LITERAL+ STARTTLS 
LOGINDISABLED "AUTH=CRAM-MD5"
lda_mailbox_autocreate = yes
log_debug = category=auth
login_log_format_elements = user=<%{user}> method=%{mechanism} rip=%{remote_ip} 
lip=%{local_ip} mpid=%{mail_pid} %{secured} %{ssl_security} 
session=<%{session}> port=%{local_port}
mail_driver = maildir
mail_gid = 2222
mail_home = /var/mail/home_mail/%{user | username}
mail_log_events = delete undelete expunge copy mailbox_delete mailbox_rename
mail_log_fields = uid box msgid size from
mail_log_prefix = %{protocol}(%{user})[%{remote_ip}]<%{session}>:
mail_path = /var/mail/home_mail/%{user | username}/Maildir
mail_temp_scan_interval = 0
mail_uid = 2222
postmaster_address = [email protected]
protocols = imap
syslog_facility = local1
verbose_proctitle = yes
namespace inbox {
  inbox = yes
  mailbox Drafts {
    autoexpunge = 5 days
    special_use = "\\Drafts"
  }
  mailbox Junk {
    autoexpunge = 5 days
    special_use = "\\Junk"
  }
  mailbox Trash {
    autoexpunge = 50 days
    special_use = "\\Trash"
  }
  mailbox Sent {
    autoexpunge = 30 days
    special_use = "\\Sent"
  }
  mailbox "Sent Messages" {
    autoexpunge = 30 days
    special_use = "\\Sent"
  }
}
passdb passwd-file {
  auth_username_format = %{user | username}
  default_password_scheme = CRYPT
  driver = passwd-file
  passwd_file_path = /usr/local/etc/dovecot/users
}
userdb static {
  driver = static
  fields {
    allow_all_users = yes
    home = /var/mail/home_mail/%d/%n
  }
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
  inet_listener imaps2 {
    port = 998
    ssl = yes
  }
}
service auth {
  unix_listener auth-userdb {
    group = vmail
    mode = 0666
    user = vmail
  }
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
}
service stats {
  unix_listener stats-reader {
    group = vmail
    mode = 0660
    user = vmail
  }
  unix_listener stats-writer {
    group = vmail
    mode = 0660
    user = vmail
  }
}
ssl_server {
  cert_file = /www/certs/mail.pem
  dh_file = /usr/local/etc/dovecot/dh.pem
  key_file = # hidden, use -P to show it
}
protocol lda {
  mail_plugins {
    sieve = yes
  }
}
protocol imap {
  imap_metadata = yes
  mail_plugins {
    sieve = yes
    mail_log = yes
  }
}
protocol pop3 {
  mail_plugins {
    mail_log = yes
    notify = yes
  }
}
sieve_script personal {
  active_path = /var/mail/home_mail/%{user | username}/.dovecot.sieve
  driver = file
  path = /var/mail/home_mail/%{user | username}/sieve
}
mail_attribute {
  dict file {
    path = %{home}/Maildir/dovecot-attributes
  }
}
test# 

-- Doug

> On Oct 18, 2026, at 22:37, Aki Tuomi <[email protected]> wrote:
> 
> doveconf would help
> 
> Aki
> 
>> On 19/10/2026 08:12 EEST Doug Hardie via dovecot <[email protected]> wrote:
>> 
>> 
>> I have dovecot 2.4 up and running and tried to add sieve.  There were a lot 
>> of strange permission errors which I fixed.  However all received mail is 
>> delivered to INBOX.  I have a test message that should match line 12 of the 
>> sieve.
>> 
>> if address :contains ["from","to","cc","bcc"] "skool.com"
>> 
>> However, sieve-test show some unusual output.  It does not give the values 
>> it is testing:
>> 
>>  12: address test
>>  12:   starting ':contains' match with 'i;ascii-casemap' comparator:
>>  12:   extracting 'from' headers from message
>>  12:   extracting 'to' headers from message
>>  12:   extracting 'cc' headers from message
>>  12:   extracting 'bcc' headers from message
>>  12:   finishing match with result: not matched
>>  12: jump if result is false
>>  12:   jumping to line 18
>> 
>> I seem to recall on 2.3 it provided both values for the test.  I suspect 
>> something has changed in the formatting of the sieve file, but I have not 
>> been able to find anything on that.  The sieve has been recompiled.
>> 
>> I am also seeing many email delivered to my inbox with the contents:
>> 
>> Date: Sun, 18 Oct 2026 22:00:00 -0700 (PDT)
>> 
>> dsync(doug): Error: mkdir(/mailbkup/home_mail/doug/Maildir) failed: 
>> Permission denied (euid=2222(vmail) egid=2222(vmail) missing +w perm: 
>> /mailbkup/home_mail, dir owned by 0:0 mode=0755)
>> dsync(doug): Error: mkdir(/mailbkup/home_mail/doug/Maildir) failed: 
>> Permission denied (euid=2222(vmail) egid=2222(vmail) missing +w perm: 
>> /mailbkup/home_mail, dir owned by 0:0 mode=0755)
>> dsync(doug): Error: mkdir(/mailbkup/home_mail/doug/Maildir) failed: 
>> Permission denied (euid=2222(vmail) egid=2222(vmail) missing +w perm: 
>> /mailbkup/home_mail, dir owned by 0:0 mode=0755)
>> dsync(doug): Error: brain S: Can't create mailbox Archive: Internal error 
>> occurred. Refer to server log for more information. [2026-10-18 22:00:00]
>> dsync(jeanne): Error: mkdir(/mailbkup/home_mail/jeanne/Maildir) failed: 
>> Permission denied (euid=2222(vmail) egid=2222(vmail) missing +w perm: 
>> /mailbkup/home_mail, dir owned by 0:0 mode=0755)
>> dsync(jeanne): Error: mkdir(/mailbkup/home_mail/jeanne/Maildir) failed: 
>> Permission denied (euid=2222(vmail) egid=2222(vmail) missing +w perm: 
>> /mailbkup/home_mail, dir owned by 0:0 mode=0755)
>> dsync(jeanne): Error: mkdir(/mailbkup/home_mail/jeanne/Maildir) failed: 
>> Permission denied (euid=2222(vmail) egid=2222(vmail) missing +w perm: 
>> /mailbkup/home_mail, dir owned by 0:0 mode=0755)
>> dsync(jeanne): Error: brain S: Can't create mailbox Bridge: Internal error 
>> occurred. Refer to server log for more information. [2026-10-18 22:00:00]
>> dsync(beneke): Error: mkdir(/mailbkup/home_mail/beneke/Maildir) failed: 
>> Permission denied (euid=2222(vmail) egid=2222(vmail) missing +w perm: 
>> /mailbkup/home_mail, dir owned by 0:0 mode=0755)
>> dsync(beneke): Error: mkdir(/mailbkup/home_mail/beneke/Maildir) failed: 
>> Permission denied (euid=2222(vmail) egid=2222(vmail) missing +w perm: 
>> /mailbkup/home_mail, dir owned by 0:0 mode=0755)
>> dsync(beneke): Error: mkdir(/mailbkup/home_mail/beneke/Maildir) failed: 
>> Permission denied (euid=2222(vmail) egid=2222(vmail) missing +w perm: 
>> /mailbkup/home_mail, dir owned by 0:0 mode=0755)
>> dsync(beneke): Error: brain S: Can't create mailbox Deleted Messages: 
>> Internal error occurred. Refer to server log for more information. 
>> [2026-10-18 22:00:01]
>> 
>> 
>> I find that a bit confusing since mail is delivered successfully to my inbox.
>> 
>> -- Doug
>> 
>> _______________________________________________
>> 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]

Reply via email to