许多年来,我成功地使用了procmail,它的食谱没有问题,我有很多很多食谱。
几个星期前,我的系统采用/开始使用spamassassin,现在那些已经使用了数年和数年的procmail配方已停止工作。
我只是系统上的常规用户,系统管理员(等)无法提供帮助。
有人可以告诉我我需要做些什么来修复我的procmail(或spamassassin),所以它的工作方式与以前一样吗?之前,它会将带有“垃圾邮件”的电子邮件放入垃圾邮件文件夹,并将各种邮件列表放入自己的邮箱中。现在,它只是将垃圾邮件标记为“*** SPAM ***”,我的邮件列表仍保留在我的收件箱中。
感谢任何帮助,链接等。
来自我的procmail.log文件
procmail: [6769] Sun Jun 21 22:43:23 2015
procmail: Assigning "JFDIR=/arpa/tz/z/zaxxon/.junkfilter/junkfilter"
procmail: Assigning "JFUSERDIR=/arpa/tz/z/zaxxon/.junkfilter/junkfilter/user_bloo
cklist"
procmail: Assigning "FROM=^(From[ ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender)::
)(.*\<)?"
procmail: No match on "^Subject: Zaxxon envdump$"
procmail: Match on "< 256000"
procmail: Locking "spamassassin.lock"
procmail: Executing "spamassassin"
/bin/sh: Can't open spamassassin
procmail: Error while writing to "spamassassin"
procmail: Rescue of unfiltered data succeeded
procmail: Unlocking "spamassassin.lock"
procmail: No match on "^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*"
procmail: Match on "^X-Spam-Status: Yes"
procmail: Locking ".lock"
procmail: Assigning "LASTFOLDER="
procmail: Opening ""
procmail: Error while writing to ""
procmail: Unlocking ".lock"
procmail: No match on "^^rom[ ]"
procmail: No match on "^(From[ ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender)::
)(.*\<)?.*(facebook|pottermore|mangafox).*"
procmail: No match on "^(From[ ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender)::
)(.*\<)?.*(facebook|pottermore|mangafox).*"
procmail: No match on "^(From[ ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender)::
)(.*\<)?.*(archiveofourown|ficwad|tthfanfic|fanficauthors|sufficientvelocity).*"
procmail: No match on "^(From[ ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender)::
)(.*\<)?.*(archiveofourown|ficwad|tthfanfic|fanficauthors|sufficientvelocity).*"
procmail: No match on "^(From[ ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender)::
)(.*\<)?.*(empornium|pornhub|tumblr).*"
procmail: No match on "^(From[ ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender)::
)(.*\<)?.*(empornium|pornhub|tumblr).*"
procmail: Match on "^(From[ ]|(Old-|X-)?(Resent-)?(From|Reply-To|Sender):)(.*\\
<)?.*(sdf\.org|lastpass\.com|xmarks\.com).*"
procmail: Locking "/var/mail/zaxxon.lock"
procmail: Assigning "LASTFOLDER=/var/mail/zaxxon"
procmail: Opening "/var/mail/zaxxon"
procmail: Acquiring kernel-lock
procmail: Unlocking "/var/mail/zaxxon.lock"
From stephaniewilson@ambertuild.biz Sun Jun 21 22:43:18 2015
Subject: *****SPAM***** Is Alcohol Controling Your Life?
Folder: /var/mail/zaxxon 20780
垃圾邮件规则是
:0:
* ^Subject:.*[Ss][Pp][Aa][Mm].*
junkmail
答案 0 :(得分:1)
procmail: Match on "< 256000"
procmail: Locking "spamassassin.lock"
procmail: Executing "spamassassin"
/bin/sh: Can't open spamassassin
procmail: Error while writing to "spamassassin"
procmail: Rescue of unfiltered data succeeded
procmail: Unlocking "spamassassin.lock"
这告诉您,您的规则几乎完全是
:0fw:spamassassin.lock
* < 256000
| spamassassin
但是在此配方运行的系统上没有名为spamassassin
的二进制文件,因此它失败了。
以下“写入错误”更难诊断,但可能看起来像
:0
当然没有任何意义。
列表标题的正则表达式似乎有拼写错误 - 没有合法的电子邮件会有两个相邻冒号字符的标题。 FROM=
赋值中的值应该只有一个冒号。
作为一般风格的评论,(非捕获)正则表达式上的尾随.*
总是多余的。
在无法访问故障.procmailrc
的情况下诊断这些问题具有挑战性。如果您仍然需要帮助,请务必注意包含您遇到问题的实际代码,如help section中所述。没有实际问题代码的问题可能会被低估和/或关闭。