当我给自己发一封邮件时:
echo "test" | mail -n -s "test" [email protected]
我收到以下错误/var/log/exim4/mainlog
:
Error in system filter: malformed numerical string ""
如何找到系统过滤器中的错误?
if $h_X-Spam_score_int is above 49
and foranyaddress $recipients ($thisaddress contains "@example.at")
then
headers add "Old-Subject: $h_subject"
headers remove "Subject"
headers add "Subject: *** SPAM ($header_X-Spam_score points) *** $h_old-subject"
headers remove "Old-Subject"
#save /var/mail/suspect_spam
finish endif
答案1
此命令为您提供系统过滤器文件的名称:
$ /usr/sbin/exim4 -bP system_filter
默认情况下它是未设置的,因此如果它包含某些内容,则必须在 Exim 配置中的某个位置进行设置。