Gmail 上的 SPF 软失败

Gmail 上的 SPF 软失败

我正在尝试使用 postfix 和 opendkim 设置自己的 smtp 服务器。我已经发布了 spf/dmarc/dkim 记录,设置了 ptr。但目前,我所有带有文本的邮件都会进入 gmail 垃圾邮件文件夹。我查找了电子邮件来源,发现了这样的日志(我从[电子邮件保护]在我的账户上[电子邮件保护]):

Delivered-To: [email protected]
Received: by 10.138.18.148 with SMTP id p20csp4871365ocs;
        Tue, 1 May 2018 07:36:31 -0700 (PDT)
X-Google-Smtp-Source: AB8JxZrPQsmv/N1Awo0qfgsz0gw+wDo0r/51iNZttxRBUbhiu0Nb17eK3sNZcm4KP6Wu3B4aFxHJ
X-Received: by 2002:adf:c4c4:: with SMTP id o4-v6mr11895652wrf.173.1525185391907;
        Tue, 01 May 2018 07:36:31 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; t=1525185391; cv=none;
        d=google.com; s=arc-20160816;
        b=MoZChW3AD7idVCBW5FJXjJw8V2Z5SL9g5H+/AT5GFoEExBs41FrFhG0xyOUt26G7xE
         JZS7fv8hrzZoJ5GUzX1Zr7SyD90ULVqrZxP2r1or/CYSLVrPplyyPe+B7p/GdR8AFW+I
         sXpROZ9yNOQ/bdbdmhTGpMUoMtxTGtyXssM0x2uICRGok8B3Q2RK5/FGN/izPdv2Dp2q
         wdy0JcD+db1xxfJtPo+uXtYldbsc079oGEyAnu4LEkz3SQ6OB34HOCfPbeEBB3gCT/dn
         igIM9YKAPqHL01yMYmCE153w8FkcrqE98SfBgEYKkQvBr2hy3aWOEJI01/+emGXPW9N+
         pc1Q==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816;
        h=from:date:message-id:to:subject:dkim-signature
         :arc-authentication-results;
        bh=QY3eSg1xUkClxZc7O05HDfwJPvSkbBuZINP6T4PQvjc=;
        b=hzxAY6fLNrTitTipY+VheNRTRbBYwOy5JKW9LgDZxpnVWBnx9al3ZmUKaJTZbs3rk7
         GsArGQCHKityZSGjUg/YX9Vfv4gb4xurY4V1yP8MlYLQpFofmlbWiMX/W8FMmVOD2+aq
         8Kh0UzWYYGO1NtEV33h8FvzDeavrOu07Ol8g8Eq6oDUkjuZZHxEKSL9VeTvJUrz57qGn
         twwsNTKNHR1fnTMdNHMQcmGMKD37MF9no9X0whHVUhnPRedGeV8Z9YxNN6LCCRUEmw2y
         xhUZIbve9e3CX8g0X+pTJhHMouphTDByG1k8y+/JUeXrn2jD402QKuyy58GBPA4hC84z
         vE2w==
ARC-Authentication-Results: i=1; mx.google.com;
       dkim=pass [email protected] header.s=mail header.b=ccV1Vw1O;
       spf=softfail (google.com: domain of transitioning [email protected] does not designate 2a07:5741:0:eb4::1 as permitted sender) [email protected];
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=code-gmail.com
Return-Path: <[email protected]>
Received: from code-gmail.com ([2a07:5741:0:eb4::1])
        by mx.google.com with ESMTPS id 90-v6si8205147wre.4.2018.05.01.07.36.31
        for <[email protected]>
        (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
        Tue, 01 May 2018 07:36:31 -0700 (PDT)
Received-SPF: softfail (google.com: domain of transitioning [email protected] does not designate 2a07:5741:0:eb4::1 as permitted sender) client-ip=2a07:5741:0:eb4::1;
Authentication-Results: mx.google.com;
       dkim=pass [email protected] header.s=mail header.b=ccV1Vw1O;
       spf=softfail (google.com: domain of transitioning [email protected] does not designate 2a07:5741:0:eb4::1 as permitted sender) [email protected];
       dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=code-gmail.com
Received: by code-gmail.com (Postfix, from userid 0) id C972B100E8B; Tue,
  1 May 2018 10:36:30 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=code-gmail.com; s=mail; t=1525185390; bh=QY3eSg1xUkClxZc7O05HDfwJPvSkbBuZINP6T4PQvjc=; h=Subject:To:Date:From:From; b=ccV1Vw1OibcUg5jV3HZnGQd4mQfOLLaRDsnPwlMAukzQA9OQHpqzGjrkABXcHdAV6
     54Lz3BlbSoyBr9bFAaBI0BO9itAXBEWeh32zZBvpXkvd0ViNcSxOH7kWwtq6dUK7hB
     210wgjTKkmOBUmEg+Stu49tIfrO2gT4Xoyv7DyC0DxzHZagJ0yG/6UrsfwNeMiyBJc
     fLudtklc+omAPbkRUEM/EzuKQQPHEmvsDdWwGJtHAKfJ8rJtYh8ta0eAIHUm2II023
     dkFQhnFtZ8cew8aeTPmqBU+YmG9K94OYwZchCds1zwXt88djHkJZH/Z4qsyG8xCr0z
     OZyndTCWD042w==
Subject: Are you going to deliver thos trucks? We need to build stuff as soon as possible
To: <[email protected]>
X-Mailer: mail (GNU Mailutils 3.1.1)
Message-Id: <[email protected]>
Date: Tue,
  1 May 2018 10:36:30 -0400 (EDT)
From: root <[email protected]>

This is just an example text 2

正如您所看到的,我遇到了这个错误:

(google.com: domain of transitioning [email protected] does not designate 2a07:5741:0:eb4::1 as permitted sender) [email protected];

但是我的 spf 记录中有这个 ipv6,它看起来像这样:

"v=spf1 include:_spf.google.com ip4:94.156.35.221 ip6:2a07:5741:0:eb4:0:0:0:1 ip6:2a07:5741:0:eb4::1 ~all" 

由于某种原因仍然软失败,我认为这是邮件最终成为垃圾邮件的主要原因。

相关内容