Dovecot 忽略了筛子

Dovecot 忽略了筛子

我的电子邮件服务器中安装了典型的 postfix+dovecot。使用 Roundcube 作为网络邮件,一切正常。问题是,显然已激活的筛选插件不起作用,或者诸如此类。因为我有不起作用的筛选规则。以下是.dovecot.sieve我的用户的评论:

require ["fileinto","regex"];
# rule:[Spam]
if anyof (header :regex "from" ".*@163.com", header :contains "from" "[email protected]", header :regex "from" ".*@126.com")
{
        discard;
}
# rule:[Parabola-assist]
if allof (header :contains "to" "[email protected]")
{
        fileinto "Maildir/.INBOX.Parabola-Assist";
        stop;
}
# rule:[Parabola-issues]
if allof (header :contains "from" "[email protected]")
{
        fileinto "Maildir/.INBOX.Parabola-Issues";
}
# rule:[Parabola-dev]
if allof (header :contains "to" "[email protected]")
{
        fileinto "Maildir/.INBOX.Parabola-Dev";
}
# rule:[Test]
if allof (header :contains "from" "[email protected]")
{
        fileinto "Maildir/.INBOX.Parabola-Dev";
        stop;
}

在所有情况下,我都尝试了不同的目录,例如省略 Maildir/、不带点的 .INBOX 文件夹等,但结果相同。最糟糕的是日志中什么都没有 :S

这是我的 Dovecot 配置:

auth_mechanisms = plain login
mail_location = maildir:~/Maildir
mail_plugins = " quota"
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 {
    auto = subscribe
    special_use = \Drafts
  }
  mailbox Sent {
    auto = subscribe
    special_use = \Sent
  }
  mailbox Spam {
    auto = subscribe
    special_use = \Junk
  }
  mailbox Trash {
    auto = subscribe
    special_use = \Trash
  }
  prefix = 
}
passdb {
  args = /etc/passwd-file
  driver = passwd-file
}
plugin {
  quota = maildir:Cuota de usuario
  quota_warning = storage=95%% quota-warning 95 %u
  sieve = file:~/sieve;active=~/.dovecot.sieve
}
protocols = imap pop3 sieve
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
  user = root
}
service imap-login {
  inet_listener imap {
    port = 143
  }
  inet_listener imaps {
    port = 993
    ssl = yes
  }
}
service lmtp {
  user = vmail
}
service pop3-login {
  inet_listener pop3 {
    port = 110
  }
  inet_listener pop3s {
    port = 995
    ssl = yes
  }
}
ssl = required
ssl_protocols = TLSv1.2 TLSv1.1 TLSv1 !SSLv3
userdb {
  args = /etc/passwd-file
  driver = passwd-file
}
protocol imap {
  mail_plugins = " quota imap_quota imap_sieve"
  ssl_cert = </etc/letsencrypt/live/server/fullchain.pem
  ssl_key =  # hidden, use -P to show it
}
protocol pop3 {
  ssl_cert = </etc/letsencrypt/live/server/fullchain.pem
  ssl_key =  # hidden, use -P to show it
}
protocol sieve {
  ssl_cert = </etc/letsencrypt/live/server/fullchain.pem
  ssl_key =  # hidden, use -P to show it
}
protocol lmtp {
  mail_plugins = " quota sieve"
}

相关内容