Dovecot 未装载筛子或未过滤

Dovecot 未装载筛子或未过滤
root@debian11:/etc/dovecot# dovecot -n
# 2.3.13 (89f716dc2): /etc/dovecot/dovecot.conf
# Pigeonhole version 0.5.13 (cdd19fe3)
# OS: Linux 5.10.0-26-amd64 x86_64 Debian 11.8
# Hostname: localhost
auth_username_format = %n
listen = 127.0.0.1, ::1
log_path = /var/log/dovecot.log
mail_debug = yes
mail_location = mbox:~/mail:INBOX=/var/mail/%u
mail_privileged_group = mail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date index ihave duplicate mime foreverypart extracttext
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
}
plugin {
  sieve = file:~/sieve;active=~/.dovecot.sieve
  sieve_default = /etc/dovecot/sieve/global/default.sieve
  sieve_global = /etc/dovecot/sieve/global/
  sieve_max_redirects = 30
}
protocols = " imap sieve pop3 sieve"
ssl_cert = </etc/dovecot/private/dovecot.pem
ssl_client_ca_dir = /etc/ssl/certs
ssl_dh = # hidden, use -P to show it
ssl_key = # hidden, use -P to show it
userdb {
  driver = passwd
}
protocol lda {
  mail_plugins = " sieve"
}

日志中只有这个

Nov 06 23:46:41 master: Info: Dovecot v2.3.13 (89f716dc2) starting up for imap, sieve, pop3, sieve (core dumps disabled)

和roundcube成功连接到managesieve

消息中的标题如下

X-Spam_score: -5.2
X-Spam_bar: ---

exim4+dovecot+mailroundcube+spamassasin

其他日志

Nov  6 23:02:00 localhost dovecot: managesieve(admin)<258896><89DBU4EJyJp/AAAB>: Disconnected: Logged out bytes=54/518

Nov 6 23:01:29 localhost roundcube: <3muamjlk> S: OK "Dovecot (Debian) ready."

roundcube 在 WEB UI 中创建新的过滤器,但不起作用,roundcube 创建 roundcube.sieve 和符号链接。我还创建了一个全局脚本,但它不起作用。

答案1

看起来 Dovecot 正在正确地提供和管理 Sieve 服务。您将需要调整您的(未指定)邮件传送代理以使用 Sieve 文件/服务进行邮件传送。

相关内容