0

我有一个安装了 postfix 和 dovecot 的邮件服务器。Postfix 被配置为使用 dovecot 的 lmtp 服务以应用一些 sieve 脚本。

mailbox_transport = lmtp:unix:private/dovecot-lmtp

到目前为止,这似乎有效。但是,当我的服务器收到发给 ilka 帐户的邮件(与所有其他帐户相同)时,我在 mail.log 中收到了这个神秘的错误:

dovecot: lmtp(ilka): Error: wFYTAsmc7lvCLgAAinrl1Q: sieve: file storage: Failed to stat sieve storage path: stat(/var/mail//ilka/sieve/scripts/) failed: Not a directory

在 dovecot 的conf.d/90-sieve.conf我实际上声明

sieve = file:~/sieve;active=~/.dovecot.sieve

那么 dovecot 是如何想出这个包含两个斜杠的奇怪(且无效)文件路径的呢?我敢肯定,我一定是做了一些非常愚蠢的错误配置,但我不知道在哪里......

感谢您的帮助!

问候, 伊尔卡

4

1 回答 1

0

好吧,我只是愚蠢:

我混淆了一些教程,并没有跟踪我更改了哪些配置文件。在dovecot.conf 中,我用这种废话覆盖了筛子配置:

plugin {
    sieve_before = /var/mail/sieve/spam-global.sieve
    sieve_dir    = /var/mail/%d/%n/sieve/scripts/
    sieve        = /var/mail/%d/%n/sieve/active-script.sieve
}

我把它注释掉了,现在我的邮件服务器工作正常,我可以开始写一些筛选规则了。

实际配置当然是在

/etc/dovecot/conf.d/90-sieve.conf

为用户的筛子脚本文件的位置进行默认配置:

sieve = file:~/sieve;active=~/.dovecot.sieve

也许有人会发现这对将来从我​​的错误中学习很有用。

问候,

伊尔卡

于 2018-11-16T13:07:53.383 回答