Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Regex Spamasassin';s自定义规则(用于主题行筛选)不';行不通_Regex_Email_Spam_Spam Prevention_Spamassassin - Fatal编程技术网

Regex Spamasassin';s自定义规则(用于主题行筛选)不';行不通

Regex Spamasassin';s自定义规则(用于主题行筛选)不';行不通,regex,email,spam,spam-prevention,spamassassin,Regex,Email,Spam,Spam Prevention,Spamassassin,我正在设置Spamassassin以用于在我的IMAP邮件帐户中过滤邮件。我的ISP已经有了一个很好的垃圾邮件过滤器,在它检测到的每条邮件的主题行前面添加了“”[spam]”“;因此,我在Spamassassin中设置了一个自定义规则,以便它为主题行以“[SPAM]”开头的任何邮件添加高分。我的用户\u prefs文件是: 然而,当我向它发送一条垃圾邮件来测试它时,它似乎并没有触发我的规则。我给它发送了一封主题行的电子邮件,例如: Subject: [SPAM] See Drone X Pro

我正在设置Spamassassin以用于在我的IMAP邮件帐户中过滤邮件。我的ISP已经有了一个很好的垃圾邮件过滤器,在它检测到的每条邮件的主题行前面添加了“”[spam]”“;因此,我在Spamassassin中设置了一个自定义规则,以便它为主题行以“[SPAM]”开头的任何邮件添加高分。我的用户\u prefs文件是:

然而,当我向它发送一条垃圾邮件来测试它时,它似乎并没有触发我的规则。我给它发送了一封主题行的电子邮件,例如:

Subject: [SPAM] See Drone X Pro in action
我是这样分析的:

[paulo@myserver mails]$ spamc -R < spam7.txt 
9.3/9.0
Spam detection software, running on the system "myserver", has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
@@CONTACT_ADDRESS@@ for details.

Content preview:  Big Drone Companies Are Terrified Of This New Drone That Hit
   The Market <http://www.fairfood.icu/uisghougw/pjarx44255sweouci/I31AAdtTTKmLsu_A6Dq7ZK_a47Ko45fCRXk7Fr9fqm4/BbYMgcZjieuj_YxMOSmnXetiI6e4Z37yS9H2zVIeHEilOpatuk8V8Mt0EtJDfLLE1llzj6MiwlLzR99DGODekcqeM7kn63lcFcp8fJutAsw>
   [...] 

Content analysis details:   (9.3 points, 9.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 2.4 DNS_FROM_AHBL_RHSBL    RBL: Envelope sender listed in dnsbl.ahbl.org
 2.7 RCVD_IN_PSBL           RBL: Received via a relay in PSBL
                            [193.17.4.113 listed in psbl.surriel.com]
-0.0 SPF_PASS               SPF: sender matches SPF record
 1.3 HTML_IMAGE_ONLY_24     BODY: HTML: images with 2000-2400 bytes of words
 0.0 HTML_MESSAGE           BODY: HTML included in message
 1.6 RCVD_IN_BRBL_LASTEXT   RBL: RCVD_IN_BRBL_LASTEXT
                            [193.17.4.113 listed in bb.barracudacentral.org]
 1.3 RDNS_NONE              Delivered to internal network by a host with no rDNS
[paulo@myserver邮件]$spamc-R
我的规则一点也不重要

我知道我的用户_prefs正在加载,因为在我粘贴了上面的部分之后,我在白名单中设置了一些电子邮件地址,当分析来自这些地址的电子邮件时,Spamassassin会正确地检测到它们


“我的规则”有什么问题?

默认情况下,在
user\u prefs
文件中关闭对自定义规则的支持。
您可以在全局配置中使用来更改它

[paulo@myserver mails]$ spamc -R < spam7.txt 
9.3/9.0
Spam detection software, running on the system "myserver", has
identified this incoming email as possible spam.  The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email.  If you have any questions, see
@@CONTACT_ADDRESS@@ for details.

Content preview:  Big Drone Companies Are Terrified Of This New Drone That Hit
   The Market <http://www.fairfood.icu/uisghougw/pjarx44255sweouci/I31AAdtTTKmLsu_A6Dq7ZK_a47Ko45fCRXk7Fr9fqm4/BbYMgcZjieuj_YxMOSmnXetiI6e4Z37yS9H2zVIeHEilOpatuk8V8Mt0EtJDfLLE1llzj6MiwlLzR99DGODekcqeM7kn63lcFcp8fJutAsw>
   [...] 

Content analysis details:   (9.3 points, 9.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
 2.4 DNS_FROM_AHBL_RHSBL    RBL: Envelope sender listed in dnsbl.ahbl.org
 2.7 RCVD_IN_PSBL           RBL: Received via a relay in PSBL
                            [193.17.4.113 listed in psbl.surriel.com]
-0.0 SPF_PASS               SPF: sender matches SPF record
 1.3 HTML_IMAGE_ONLY_24     BODY: HTML: images with 2000-2400 bytes of words
 0.0 HTML_MESSAGE           BODY: HTML included in message
 1.6 RCVD_IN_BRBL_LASTEXT   RBL: RCVD_IN_BRBL_LASTEXT
                            [193.17.4.113 listed in bb.barracudacentral.org]
 1.3 RDNS_NONE              Delivered to internal network by a host with no rDNS