1

Topic: Auto learn spam/ham with Dovecot imap_sieve plugin 的錯誤訊息

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? download
- Linux/BSD distribution name and version:  CentOS7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? 3.3 (LDAP)
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
我的log 訊息和此po文的錯誤訊息是不一樣:
https://forum.iredmail.org/topic15375-e … lugin.html


1)./etc/dovecot/dovecot.conf
#若加入此行:sieve_plugins = sieve_extprograms  , dovecot.log  訊息不會出現Warning: sieve:"
plugin {
.....
    sieve_plugins = sieve_extprograms
    sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment
}


dovecot.log:(未加入)
Mar  4 16:40:56 mail dovecot: master: Dovecot v2.2.36 (1f10bfa63) starting up for pop3, imap, sieve, lmtp (core dumps disabled)
Mar  4 16:40:56 mail dovecot: managesieve: Warning: sieve: ignored unknown extension 'vnd.dovecot.pipe' while configuring available extensions


2)./etc/dovecot/dovecot.conf
#未加入此行:sieve_plugins = sieve_extprograms
plugin {
.......
#   sieve_plugins = sieve_extprograms
    sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment
}

a).imap.log:
Mar  4 16:44:50 mail dovecot: imap(admin@mydomain.com): Server shutting down. in=376 out=3554
Mar  4 16:44:50 mail dovecot: imap(admin@mydomain.com): Server shutting down. in=380 out=3405
Mar  4 16:45:11 mail dovecot: imap-login: Login: user=<admin@mydomain.com>, method=PLAIN, rip=10.10.10.27, lip=10.10.10.100, mpid=13047, TLS, session=<0+hDxkCDAAkKwLAb>
Mar  4 16:45:11 mail dovecot: imap(admin@mydomain.com): Warning: sieve: ignored unknown extension 'vnd.dovecot.pipe' while configuring available extensions
Mar  4 16:45:11 mail dovecot: imap(admin@mydomain.com): Error: sieve: binary open: binary /var/vmail/sieve/report_spam.svbin requires unknown extension `vnd.dovecot.pipe'
Mar  4 16:45:11 mail dovecot: imap(admin@mydomain.com): Error: sieve: report_spam: line 1: require command: unknown Sieve capability `vnd.dovecot.pipe'
Mar  4 16:45:11 mail dovecot: imap(admin@mydomain.com): Error: sieve: report_spam: line 7: unknown command 'pipe' (only reported once at first occurrence)
Mar  4 16:45:11 mail dovecot: imap(admin@mydomain.com): Error: sieve: report_spam: validation failed
Mar  4 16:45:11 mail dovecot: imap(admin@mydomain.com): Error: sieve: Failed to compile script `/var/vmail/sieve/report_spam.sieve'
Mar  4 16:45:11 mail dovecot: imap(admin@mydomain.com): sieve: left message in mailbox 'Junk'
Mar  4 16:45:11 mail dovecot: imap(admin@mydomain.com): expunge: box=INBOX, uid=42, msgid=<6a3d3e70-4d7e-5401-c2db-ba07987ddc85@mydomain.com>, size=3386, from==?UTF-8?B?5ris6KmmIC10ZXN0NC1QLXN0bHM=?= <test1@mydomain.com>, subject=Fwd: 1 wrong recipient in TO or CC and not send the whole message

3). spam目錄沒有moved信件
# ll /var/vmail/imapsieve_copy/spam/
總計 0

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Auto learn spam/ham with Dovecot imap_sieve plugin 的錯誤訊息

sieve_plugins 和 sieve_global_extensions 都是必须的。
你启用了它们之后仍然有错误?

3

Re: Auto learn spam/ham with Dovecot imap_sieve plugin 的錯誤訊息

ZhangHuangbin wrote:

sieve_plugins 和 sieve_global_extensions 都是必须的。

執行上很正常.

PS: 請問版主 ,文檔說 "iRedMail server can precisely catch more spams. "
      ,其是針對全域性或針對單一帳號 ?

Thanks.

4

Re: Auto learn spam/ham with Dovecot imap_sieve plugin 的錯誤訊息

目前的配置是针对整个服务器的 auto learn,不是 per-domain / per-user。

5

Re: Auto learn spam/ham with Dovecot imap_sieve plugin 的錯誤訊息

了解.

Thanks.