Dovecot与虚拟用户和pipe理

我想在使用虚拟用户和用户的ldap的dovecot服务器中使用manageieve。 这是在我的dovecot.conf中:

plugin { sieve_dir=/var/mail/sievescript/%u_scripts sieve_extensions = +imapflags } protocol managesieve { login_executable = /usr/lib/dovecot/managesieve-login mail_executable = /usr/lib/dovecot/managesieve managesieve_max_line_length = 65536 managesieve_logout_format = bytes=%i/%o listen = *:2000 } 

如果我尝试与pipe理telnet的manageieve发生这种情况:

  Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. "IMPLEMENTATION" "dovecot" "SIEVE" "fileinto reject envelope encoded-character vacation subaddress comparator- i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date imapflags" "SASL" "PLAIN LOGIN" "STARTTLS" "NOTIFY" "mailto" "VERSION" "1.0" OK "Dovecot ready." AUTHENTICATE "PLAIN" "xxxxxxxxxxxxx" BYE "Internal error occured. Refer to server log for more information. [2011-10-02 00:48:09]" Connection closed by foreign host. 

鸽舍日志说:

  2011-10-02 00:48:09 MANAGESIEVE(user): Fatal: Failed to create sieve storage with data: /var/mail/sievescript/user_scripts 

sievescirpt文件夹由dovecot拥有:dovecot。 有人可以帮忙吗?

谢谢。

    如果你问自己这是什么:在configuration中是错误的path,因为我使用%u,但是我应该使用%m

    Dovecot不会像在VirtualUsers文档中解释的dovecot用户一样访问邮件或sieve脚本,因此很可能需要根据您的用户数据库指定Dovecot正在为该虚拟用户使用的UserID 。