我有一个用于更新 SpamAssassin 的 cron 作业,但它不断向我发送错误。我怎样才能阻止 SpamAssasin 作业向我发送电子邮件?
这是我收到的电子邮件:
Subject: Cron <root@kizbit> /usr/share/spamassassin/sa-update.cron 2>&1 | tee -a /var/log/sa-update.log
UTF-16 surrogate 0xd800 at /usr/share/perl5/Pod/Simple/BlackBox.pm line 67.
UTF-16 surrogate 0xd800 at /usr/share/perl5/Pod/Simple/BlackBox.pm line 67.
UTF-16 surrogate 0xd800 at /usr/share/perl5/Pod/Simple/BlackBox.pm line 67.
http: GET 3.4 request failed: 400 URL must be absolute: 400 URL must be absolute
error: no mirror data available for channel sought.rules.yerp.org
channel: MIRRORED.BY contents were missing, channel failed
http: GET 3.4 request failed: 400 URL must be absolute: 400 URL must be absolute
error: no mirror data available for channel updates.spamassassin.org
channel: MIRRORED.BY contents were missing, channel failed
我尝试编辑/etc/cron.d/sa-update
并更改此行
# 10 4 * * * root /usr/share/spamassassin/sa-update.cron 2>&1 | tee -a /var/log/sa-update.log
10 4 * * * root /usr/share/spamassassin/sa-update.cron 2>&1 >> /var/log/sa-update.log
我尝试在文件开头添加该行。
MAILTO=
我尝试查看垃圾邮件用户的 crontab:
# crontab -l -u spam
no crontab for spam
既然什么都不起作用但它仍然给我发送邮件,我该如何阻止它给我发送邮件?
CentOS 版本 6.10(最终版)