如果邮件是垃圾邮件,如何禁用 Postfix 不向发件人发送自动回复电子邮件?

如果邮件是垃圾邮件,如何禁用 Postfix 不向发件人发送自动回复电子邮件?

Debian,Postfix,Spamassassin。当 postfix 收到垃圾邮件时,postfix 发送答案:550 5.7.1 Blocked by SpamAssassin。

我无法禁用它。如何不拒绝,而是默默地丢弃垃圾邮件?我不想让垃圾邮件发送者知道我的邮件服务器收到了恶意邮件。

/etc/postfix/master.cf:

...
spamassassin unix -     n       n       -       -       pipe
  user=debian-spamd argv=/usr/bin/spamc -f -e
  /usr/sbin/sendmail -oi -f ${sender} ${recipient}

/etc/postfix/main.cf

...
milter_default_action = accept
milter_protocol = 6
smtpd_milters = inet:localhost:8891,local:spamass/spamass.sock
non_smtpd_milters = $smtpd_milters
...

/etc/spamassassin/local.cf:

rewrite_header Subject *****SPAM*****
report_safe 0
required_score 5.0
use_bayes 1
bayes_auto_learn 1
skip_rbl_checks 0
use_razor2 0
use_pyzor 0

allow_user_rules 0

body LOCAL_DEMONSTRATION_RULE   /root-test-12345/i
score LOCAL_DEMONSTRATION_RULE 6.0
describe LOCAL_DEMONSTRATION_RULE       This is a simple test rule in body.

header LOCAL_DEMONSTRATION_SUBJECT      Subject =~ /\btestheader\b/i
score LOCAL_DEMONSTRATION_SUBJECT       6.0
describe LOCAL_DEMONSTRATION_SUBJECT       This is a simple test rule in header.

在我安装 spamass-milter 之前,Spamassassin 只会将电子邮件主题标记为垃圾邮件

垃圾邮件检测有效,问题是如何禁用自动通知。

相关内容