Spamassassin && Exim:重定向垃圾邮件

Spamassassin && Exim:重定向垃圾邮件

我想重定向所有电子邮件,标记为垃圾邮件到专用邮箱。

适用于Exim4SpamAssassin 服务器版本 3.3.1CentOS6.5.

Exim 的acl_check_data区块规则:

  warn  message = X-Redirect-To: [email protected]
    hosts    = !+relay_from_hosts
    spam    = nobody

  warn  spam    = nobody:true
    hosts    = !+relay_from_hosts
    message    = X-Spam-Level: $spam_bar

  warn  spam    = nobody:true
    hosts    = !+relay_from_hosts
    condition = ${if >{$spam_score_int}{29}{1}{0}}
    message = X-Spam-Status: $spam_report

  deny  message    = Message scored $spam_score spam points
    spam        = nobody:true
    condition    = ${if >{$spam_score_int}{100}{yes}{no}}

接下来,在routers

spam_redirect:
    driver = redirect
    condition = ${if def:h_X-Redirect-To: {1}{0}}
    headers_add = X-Original-Recipient: $local_part@$domain
    data = $h_X-Redirect-To:
    headers_remove = X-Redirect-To
    redirect_router = dovecot_user

结果是垃圾邮件真的被阻止了:

2014-07-14 15:27:45 1X6fLq-0007x4-FI H=([117.208.154.131])[117.208.154.131] I=[77..20]:25 F= 数据后被拒绝:邮件获得 10.8 个垃圾邮件分数

但我没有收到这封电子邮件[电子邮件保护]

相关内容