![Exim:系统过滤器错误:格式错误的数字字符串“”](https://linux22.com/image/105040/Exim%EF%BC%9A%E7%B3%BB%E7%BB%9F%E8%BF%87%E6%BB%A4%E5%99%A8%E9%94%99%E8%AF%AF%EF%BC%9A%E6%A0%BC%E5%BC%8F%E9%94%99%E8%AF%AF%E7%9A%84%E6%95%B0%E5%AD%97%E5%AD%97%E7%AC%A6%E4%B8%B2%E2%80%9C%E2%80%9D.png)
当我给自己发一封邮件时:
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 配置中的某个位置进行设置。