Re: Sieve scripts igniored

Jürgen Echter j.echter at echter-kuechen-elektro.de
Fri Jan 7 11:35:56 UTC 2022


Am Freitag, Januar 07, 2022 12:20 CET, schrieb Sam R <sr42354 at gmail.com>:
 Hello, I have an issue with Sieve plugin, I can drive rules remotely with sieve://myserver.fr:4190/?tls=YES, the rules are well created under /home/vmail/name.firstname, but these are never executed.

I have also read https://doc.dovecot.org/configuration_manual/sieve/troubleshooting/, but I don't see any evident mistake. here is my dovecot -n :
# 2.3.13 (89f716dc2): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.13 (cdd19fe3)
# OS: Linux 5.10.0-8-amd64 x86_64 Debian 11.0 ext4
# Hostname: mail.xxx.fr
auth_debug = yes
auth_gssapi_hostname = $ALL
auth_krb5_keytab = /etc/dovecot/dovecot.keytab
auth_mechanisms = login plain gssapi
mail_location = maildir:/home/vmail/%n/Maildir/
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relationa                           l regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttex                           t
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix =
}
passdb {
  driver = pam
}
passdb {
  driver = pam
}
plugin {
  sieve = file:~/sieve;active=~/.dovecot.sieve
}
protocols = " imap lmtp sieve pop3"
service lmtp {
  executable = lmtp -L
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0666
    user = postfix
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
}
ssl = required
ssl_cert = </etc/letsencrypt/live/mail.xxx.fr/fullchain.pem
ssl_client_ca_dir = /etc/ssl/certs
ssl_client_ca_file = /etc/letsencrypt/live/mail.xxx.fr/chain.pem
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
  driver = passwd
}
userdb {
  args = uid=vmail gid=vmail home=/home/vmail/%u allow_all_users=yes
  driver = static
}
userdb {
  driver = passwd
}
protocol lmtp {
  mail_plugins = " sieve"
}
protocol lda {
  mail_plugins = " sieve"
}
 Thanks for helping. kind regards. SamuelHi,

maybe you should tell dovecot where to look for the sieve files.

Like
plugin {
sieve = /srv/vmail/%Ld/%Ln/.dovecot.sieve
...
Cheers

Juergen  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://dovecot.org/pipermail/dovecot/attachments/20220107/a70c1309/attachment.htm>


More information about the dovecot mailing list