如何在postfix和UBUNTU上停止垃圾邮件

时间:2017-01-12 08:25:11

标签: ubuntu spam postfix

我无法在我的ubuntu和postfix上停止垃圾邮件。

我通过在sender_access中添加行来阻止后缀中的垃圾邮件服务器:

smtp02.emaillo.pl REJECT
emaillo.pl REJECT

我甚至通过添加:

来阻止host.deny级别的整个通信
ALL: 185.70.36.24
ALL: 185.70.36.

当然我重启机器。我仍然收到很多电子邮件。这是来自该服务器的电子邮件标题:

From - Thu Jan 12 08:32:55 2017
X-Account-Key: account3
X-UIDL: UID117996-1235585685
X-Mozilla-Status: 0000
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:                                                                                 
Return-Path: <14x18297.1915.431494101@info.emaillo.pl>
X-Original-To: orasoft@orasoft.net.pl
Delivered-To: orasoft@orasoft.net.pl
Received: from localhost (localhost [127.0.0.1])
    by mail.orasoft.net.pl (Postfix) with ESMTP id B3568230342
    for <orasoft@orasoft.net.pl>; Wed, 11 Jan 2017 15:11:18 +0100 (CET)
X-Virus-Scanned: amavisd-new at orasoft.net.pl
X-Spam-Flag: NO
X-Spam-Score: 2.848
X-Spam-Level: **
X-Spam-Status: No, score=2.848 tagged_above=2 required=6.31
    tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
    HTML_MESSAGE=0.001, RAZOR2_CF_RANGE_51_100=0.5,
    RAZOR2_CF_RANGE_E8_51_100=1.886, RAZOR2_CHECK=0.922,
    RCVD_IN_BRBL_LASTEXT=1.449, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01,
    UNPARSEABLE_RELAY=0.001] autolearn=no
Authentication-Results: mail.orasoft.net.pl (amavisd-new);
    dkim=pass (1024-bit key) header.d=emaillo.pl
Received: from mail.orasoft.net.pl ([91.235.238.33])
    by localhost (mail.orasoft.net.pl [127.0.0.1]) (amavisd-new, port 10024)
    with ESMTP id HWRQoQFfHgHW for <orasoft@orasoft.net.pl>;
    Wed, 11 Jan 2017 15:11:16 +0100 (CET)
Received: from smtp02.emaillo.pl (smtp02.emaillo.pl [185.70.36.24])
    by mail.orasoft.net.pl (Postfix) with ESMTP id 648CF22FFE7
    for <orasoft@orasoft.net.pl>; Wed, 11 Jan 2017 15:11:16 +0100 (CET)
Received: from smtp02.emaillo.pl (smtp02.emaillo.pl [185.70.36.24])
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=emaillo.pl; s=default;
    t=1484143789; bh=riutoAPPvXxo9l8M3cnJDTxaRwA=;
    h=From:To:Reply-To:Date:Subject:List-Unsubscribe;
    b=p68tdznlGV/sSzkmDoHvxijZZ8DmQJoFutu6o34eO3sxz2Cwe1URpx0vfiKVIKfGo
     dIBfy/Jc7+AtO7SSbn7EgwY5iIx4ywWvhsvUf1BrDgwdr4XwdD9t6E2NQJLQ7Wh/pw
     D/vzT+sg2vBBxo3XinAJM67JLjihxUezZkUYBvIU=

有任何建议如何阻止它?我很困惑:(

1 个答案:

答案 0 :(得分:1)

要停止垃圾邮件,您可以将此IP地址添加到iptables:
iptables -I INPUT -s 185.70.36.24 -p tcp --dport 25 -j REJECT
从main.cf提供smtpd_sender_restrictions变量
还提供完整的邮件标题