Amavis 和 SpamAssassin 不会将垃圾邮件标记为第二个域中的垃圾邮件

Amavis 和 SpamAssassin 不会将垃圾邮件标记为第二个域中的垃圾邮件

我目前正在使用 postfix 设置 amavis 和 spamassassin。到目前为止,SpamAssassin 会阻止并退回垃圾邮件。如果我设置$final_spam_destiny为,D_PASS邮件会通过,但$sa_spam_subject_tag不会附加,并且 X-Spam 值也不存在。

日志明确指出,它通过了垃圾邮件:

amavis[28391]: (28391-01) Passed SPAM, [209.***] [93.1***] <s**g@*.com> -> <*@s*.de>, quarantine: C/spam-CJpo9ylrA1wv.gz, Message-ID: <5006FC18.5090100@*.com>, mail_id: CJpo9ylrA1wv, Hits: 999.201, size: 2125, queued_as: 37D3C3148077, 4803 ms

邮件头包含:

Return-Path: <*@*.com>
X-Original-To: *@*.de
Delivered-To: *@*.de
Received: from localhost (localhost.localdomain [127.0.0.1])
    by *.de (Postfix) with ESMTP id 37D3C3148077
    for <*@*.de>; Wed, 18 Jul 2012 20:10:43 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at *.de
Received: from *.de ([127.0.0.1])
    by localhost (*.de [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id CJpo9ylrA1wv for <*@*.de>;
    Wed, 18 Jul 2012 20:10:38 +0200 (CEST)
Received-SPF: pass ...
Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53])...
Received: by bkwj4 with SMTP id j4so1701207bkw.40...
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
    d=gmail.com; s=20120113;
    h=message-id:date:from:user-agent:mime-version:to:subject
     :content-type:content-transfer-encoding;
    bh=id84uDPa9SMZAVd+g2pYg3Hl9aPfnapoGlOygxrIuV4=;
    b=JIl4ACvkBlszuucl5FcvhGLv3zJxmxxcwXNrEfdow5hhzkxPdYuyiZ+l6ONNNYpQ/g
     S1rzFxK13JZ8meekXFZMjA6e+vDlngLjHgBqpT8lmYVAoc+XBsZQZmtVgchIRgVTckZ7
     yCoYKcR0uC4OW9PWZnCmM5gCnz/EUp/YpOZ/6cSRkZQCFoFyzdsMinC4vZObwvSviTlZ
     0Yg3NricaELpWH9umginV0rBH3XQzfVadkbfZFfmr2ZIt/bhVl1Gg9MR5rZ1hFcSotm+
     7JmpqetIoTRCr3lK41ePY26VbVf9doM3GczWrjZuG1jzv8xyUMKXs2SRQuWaM2X0CB7R
     +X9Q==
Received: by 10.205.123.9 with SMTP id gi9mr2278388bkc.50.1342635037852;
    Wed, 18 Jul 2012 11:10:37 -0700 (PDT)
Received: from [192.168.1.68] (srbk-5d801d46.pool.mediaWays.net. [93.128.29.70])
    by mx.google.com with ESMTPS id t23sm12424175bks.4.2012.07.18.11.10.35
    (version=SSLv3 cipher=OTHER);
    Wed, 18 Jul 2012 11:10:37 -0700 (PDT)
Message-ID: <*.*@gmail.com>

这只发生在我的第二个域名上。在第一个域名上,Spamassassin 工作正常。

有什么帮助吗?

答案1

我得到了它:

我在文件中添加了我的第二个域名amavis/conf.d/05-domain-id

@local_domains_acl = ( ".$mydomain",".seconddomain.de" );

现在它起作用了。

相关内容