我正在尝试在Ubuntu 14.04上运行dovecot + pigeonhole sieve。
从我读过的所有东西看来,这应该是相当简单的,但我似乎无法得到它的工作。
我已经安装并configuration了dovecot,并且一切正常。 现在我正试图让鸽子过滤。
我从回购站安装了鸽子
apt-get install -y dovecot-sieve dovecot-managesieved
这是我的dovecot.conf:
disable_plaintext_auth = no mail_privileged_group = mail mail_location = mbox:~/mail:INBOX=/var/mail/%u userdb { driver = prefetch } userdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } protocols = imap lmtp protocol imap { mail_plugins = " autocreate" disable_plaintext_auth = no } plugin { autocreate = Trash autocreate2 = Sent autosubscribe = Trash autosubscribe2 = Sent sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } } protocol lmtp { [email protected] hostname=irn.cc mail_plugins = $mail_plugins sieve } protocol sieve { } ssl=required ssl_cert = </etc/ssl/certs/mailcert.pem ssl_key = </etc/ssl/private/mail.key
从我的理解开始,dovecot应该启动sieve守护进程。 但是,似乎没有人在4190上收听。
Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 241/master tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 1706/dovecot tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 241/master tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 1706/dovecot tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN - tcp6 0 0 :::993 :::* LISTEN 1706/dovecot tcp6 0 0 :::143 :::* LISTEN 1706/dovecot tcp6 0 0 :::80 :::* LISTEN 420/apache2 tcp6 0 0 :::22 :::* LISTEN - tcp6 0 0 :::5432 :::* LISTEN - udp 0 0 0.0.0.0:68 0.0.0.0:* - udp 0 0 172.17.42.1:123 0.0.0.0:* - udp 0 0 10.0.8.15:123 0.0.0.0:* - udp 0 0 127.0.0.1:123 0.0.0.0:* - udp 0 0 0.0.0.0:123 0.0.0.0:* - udp 0 0 0.0.0.0:59800 0.0.0.0:* - udp 0 0 0.0.0.0:35789 0.0.0.0:* - udp 0 0 0.0.0.0:5353 0.0.0.0:* - udp6 0 0 fe80::5484:7aff:fef:123 :::* - udp6 0 0 fe80::250:56ff:fe81:123 :::* - udp6 0 0 ::1:123 :::* - udp6 0 0 :::123 :::* - udp6 0 0 :::58320 :::* -
我错过了一个步骤来启动它? 日志似乎没有显示任何错误,或者看到这些设置的任何迹象。 我所看到的只是开始的鸽舍过程。
Jun 22 17:10:51 castle dovecot: master: Dovecot v2.2.9 starting up
一般来说,你必须启用sieve :
protocols = imap sieve
然后,您必须启用筛选调用LDA:
protocol lda { mail_plugins = sieve . . . . . }
现在你必须configuration插件本身:
plugin { sieve_before = /etc/dovecot/common.sieve sieve_dir = ~/sieve/ sieve = ~/user.sieve . . . . . }
最后一步 – 您必须configurationmanagesieve守护进程:
service managesieve-login { inet_listener sieve { port = 4190 } }
像往常一样,我发现问题后立即发现答案。
对于将来遇到这个问题的任何人,我必须在protocolsjoinsieve :
protocols = imap lmtp sieve