【问题标题】:How to stop SPAM on postfix and UBUNTU如何在 postfix 和 UBUNTU 上停止垃圾邮件
【发布时间】:2017-05-27 06:27:12
【问题描述】:

我无法阻止我的 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=

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

【问题讨论】:

    标签: ubuntu spam postfix


    【解决方案1】:

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

    【讨论】:

    • 该问题与 help center 中定义的 Stack Overflow 无关。请不要回答此类问题;相反,您应该标记它们以引起注意,它们将被适当地关闭或迁移。
    • host.deny 是否没有关闭来自 185.70.36.24 的所有连接?我是否需要在 iptables 中添加额外的行(据我了解它只会阻止端口 25 上的通信)?我在想 host.deny 会停止与这个 IP 地址和我的服务器的整个通信。不对吗?
    • 这是完整的标题 - 其余是主题,只是电子邮件
    • smtpd_sender_restrictions = reject_unknown_sender_domain,reject_sender_login_mismatch,reject_non_fqdn_sender,reject_unknown_address,reject_unauth_pipelining,允许
    猜你喜欢
    • 2019-08-20
    • 2017-05-11
    • 2016-07-10
    • 1970-01-01
    • 2016-07-29
    • 1970-01-01
    • 2016-10-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多