为什么当我测试 spamc 时它总是给我 0/0?

为什么当我测试 spamc 时它总是给我 0/0?

在我的 centos 5 上我安装了 spamassassin 并且我想使用命令行客户端从 php 执行它。

问题是每次运行它时,我都会得到以下结果:

0/0

以下是我的运行方式

echo "VIAGRA" | /usr/bin/spamc -c -F spamassasin.conf

这是我的配置文件

# SpamAssassin config file for version 3.x
# NOTE: NOT COMPATIBLE WITH VERSIONS 2.5 or 2.6
# See http://www.yrex.com/spam/spamconfig25.php for earlier versions
# Generated by http://www.yrex.com/spam/spamconfig.php (version 1.50)

# How many hits before a message is considered spam.
required_score           7.5

# Encapsulate spam in an attachment (0=no, 1=yes, 2=safe)
report_safe             1

# Enable the Bayes system
use_bayes               1

# Enable Bayes auto-learning
bayes_auto_learn              1

# Enable or disable network checks
skip_rbl_checks         0
use_razor2              1
use_dcc                 1
use_pyzor               1

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
# - english 
ok_languages            en 

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales              en 

任何想法?

一如既往,谢谢你

答案1

这不是 RFC822 电子邮件,spamassassin 可能只是放弃了。

您可能在 /usr/share/doc/spamassassin/examples/ 中有一些更好的测试邮件。

答案2

答案很简单……spamassassin 在测试期间处于宕机状态:P

答案3

不要使用字符串“VIAGRA”进行测试,而是使用示例垃圾邮件(sample-spam.txt)或管状细绳:

XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X

GTUBE 是与 EICAR 相当的反垃圾邮件措施。

相关内容