使用 DomainKey 后,Gmail 邮件投递中断

使用 DomainKey 后,Gmail 邮件投递中断

我有一个个人 VPS,用作个人电子邮件和 Web 服务器。今天我正在诊断电子邮件,并在 Gmail 上创建了一个测试帐户。起初我没有实施 DomainKey,只有 SPF 可用。我从我的服务器发送了一封电子邮件,它进入了收件箱文件夹。这是消息:

Delivered-To: [email protected]  
Received: by 10.49.109.169 with SMTP id ht9csp256915qeb;  
    Thu, 10 Oct 2013 08:27:14 -0700 (PDT)  
X-Received: by 10.60.42.168 with SMTP id p8mr617741oel.73.1381418834422;  
    Thu, 10 Oct 2013 08:27:14 -0700 (PDT)  
Return-Path: <[email protected]>  
Received: from azary.ir (azary.ir. [198.23.143.195])  
    by mx.google.com with ESMTP id t30si17805783yhb.274.1969.12.31.16.00.00;  
    Thu, 10 Oct 2013 08:27:14 -0700 (PDT)  
Received-SPF: pass (google.com: domain of [email protected] designates 198.23.143.195 as permitted sender) client-ip=198.23.143.195;  
Authentication-Results: mx.google.com;  
   spf=pass (google.com: domain of [email protected] designates 198.23.143.195 as permitted sender) [email protected]  
Received: from azary.ir (localhost [127.0.0.1])  
by azary.ir (Postfix) with ESMTPA id F06AF141077  
for <[email protected]>; Thu, 10 Oct 2013 18:57:12 +0330 (IRST)  
MIME-Version: 1.0  
Content-Type: text/plain; charset=UTF-8;  
 format=flowed  
Content-Transfer-Encoding: 7bit  
Date: Thu, 10 Oct 2013 18:57:12 +0330  
From: "soroosh.azary" <[email protected]>  
To: [email protected]  
Subject: test15  
Message-ID: <[email protected]>  
X-Sender: [email protected]  
User-Agent: Roundcube Webmail/0.9.4  

;aslfj ;lsakjf ;asj;fdlkj    

然后我意识到我还没有在服务器上启用 DomainKey。启用后,我再次向同一帐户发送了一封电子邮件,但这次它落入了垃圾邮件文件夹。以下是邮件内容:

Delivered-To: [email protected]  
Received: by 10.49.109.169 with SMTP id ht9csp260477qeb;  
        Thu, 10 Oct 2013 09:33:48 -0700 (PDT)  
X-Received: by 10.182.66.164 with SMTP id g4mr1837295obt.47.1381422827879;  
        Thu, 10 Oct 2013 09:33:47 -0700 (PDT)  
Return-Path: <[email protected]>  
Received: from azary.ir (azary.ir. [198.23.143.195])
        by mx.google.com with ESMTP id z44si17956142yhn.218.1969.12.31.16.00.00;
        Thu, 10 Oct 2013 09:33:47 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates 198.23.143.195 as permitted sender) client-ip=198.23.143.195;
Authentication-Results: mx.google.com;
       spf=pass (google.com: domain of [email protected] designates 198.23.143.195 as permitted sender) [email protected];
       dkim=pass [email protected]
Received: from azary.ir (localhost [127.0.0.1])
        by azary.ir (Postfix) with ESMTPA id CC8FF1400AA
        for <[email protected]>; Thu, 10 Oct 2013 20:03:45 +0330 (IRST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=azary.ir; s=2013;
    t=1381422825; bh=JEpdovrX5kTP5c8EfB0d+fjgdTg6w2qACp6GgAOfVto=;
    h=Date:From:To:Subject:From;
    b=X9ecar48Un7rocSIUgJllNLJM/ukuc57zaGUxM3Iwp8uKy2Z6lUOc0mrqpJDhx+/c
     ZbS5d4nkM8Geq4982ik6/0l0NDsTxtBIkJosRNeU02MhxSb7fnE9vCCx0W379w4A+T
     CpuTT28Dq6np4mRrIEiVX/DmhmI2Zu7GdSVU2CjupQ8Jyei/X6/33IS/+9BJ522++H
     FlkwQ3lFDWgU6zBdvmXm6TYTvA+phJKCC3rgbKTlyQInT8KPLpgZFzzzBwJkWWmKOR
     0pdsapmPjiJMXoCoLXpPoT4Ld1Ff4ZmT1z15LEbgigdihZRyeAd/BNKjFwk0bVqSr4
     8aVQRmzPH17+w==
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Thu, 10 Oct 2013 20:03:45 +0330
From: "soroosh.azary" <[email protected]>
To: [email protected]
Subject: test18
Message-ID: <[email protected]>
X-Sender: [email protected]
User-Agent: Roundcube Webmail/0.9.4

sdfnlasdfaslkfdjhasf

发生了什么事?我该如何解决?
有趣的是,当我向 Yahoo 发送电子邮件时,它们首先进入垃圾邮件文件夹,然后进入收件箱,与 Gmail 的情况正好相反!

更新:
我已发送了一封电子邮件至[email protected],结果如下:

==========================================================
    Summary of Results
==========================================================
SPF check:          pass
DomainKeys check:   neutral
DKIM check:         pass
Sender-ID check:    pass
SpamAssassin check: ham

==========================================================
Details:
==========================================================

HELO hostname:  azary.ir
Source IP:      198.23.143.195
mail-from:      [email protected]

----------------------------------------------------------
SPF check details:
----------------------------------------------------------
Result:         pass 
ID(s) verified: [email protected]
DNS record(s):
    azary.ir. SPF (no records)
    azary.ir. 38400 IN TXT "v=spf1 a mx a:azary.ir ip4:198.23.143.195 ?all"
    azary.ir. 38400 IN A 198.23.143.195

----------------------------------------------------------
DomainKeys check details:
----------------------------------------------------------
Result:         neutral (message not signed)
ID(s) verified: [email protected]
DNS record(s):

----------------------------------------------------------
DKIM check details:
----------------------------------------------------------
Result:         pass (matches From: [email protected])
ID(s) verified: header.d=azary.ir
Canonicalized Headers:
    Date:'20'Thu,'20'10'20'Oct'20'2013'20'22:32:26'20'+0330'0D''0A'
    From:'20'"soroosh.azary"'20'<[email protected]>'0D''0A'
    To:'20'[email protected]'0D''0A'
    Subject:'20'asdf'0D''0A'
    DKIM-Signature:'20'v=1;'20'a=rsa-sha256;'20'c=simple/simple;'20'd=azary.ir;'20's=2013;'0D''0A'
    '09't=1381431747;'20'bh=frcCV1k9oG9oKj3dpUqdJg1PxRT2RSN/XKdLCPjaYaY=;'0D''0A'
    '09'h=Date:From:To:Subject:From;'0D''0A'
    '09'b=

Canonicalized Body:
    '0D''0A'


DNS record(s):
  2013._domainkey.azary.ir. 38400 IN TXT "v=DKIM1; k=rsa; t=s; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzmZ9hO/I4JfmRKOHP3ALQj15U/ECe/TiP88R2npL+B3jgrzTYQejG2uByYU9Eq1GlQTbqP4j+IKc4CnagBbOvGsnPfz/aUFSANd9qKmFPkFkwsWdhQ7mHQzDAXkOKrxvnhEc/ttFPnw5t4WZM+42n5mFojUMCchqsUvgj+jkpPbWYgA5tOLmRrgJ5Z7EbGvjU78TNAwrygyyFz2+VNHNsy1N008uoS6EO24xQZXc5u0HCzJEcK+TIC81t8E5W/2H0OY8KJEufl7kJorJgPlyFgu8Qq3ZEzzuywcQU+R70jJ+yofa0vPgq50n1vr8xpgYViquFi/LlcnJ4bapnPjjxwIDAQAB"

Public key used for verification: 2013._domainkey.azary.ir (2048 bits)

NOTE: DKIM checking has been performed based on the latest DKIM specs
(RFC 4871 or draft-ietf-dkim-base-10) and verification may fail for
older versions.  If you are using Port25's PowerMTA, you need to use
version 3.2r11 or later to get a compatible version of DKIM.

----------------------------------------------------------
Sender-ID check details:
----------------------------------------------------------
Result:         pass 
ID(s) verified: [email protected]
DNS record(s):
    azary.ir. SPF (no records)
    azary.ir. 38400 IN TXT "v=spf1 a mx a:azary.ir ip4:198.23.143.195 ?all"
    azary.ir. 38400 IN A 198.23.143.195

----------------------------------------------------------
SpamAssassin check details:
----------------------------------------------------------
SpamAssassin v3.3.1 (2010-03-16)

Result:         ham  (-2.7 points, 5.0 required)

 pts rule name              description
---- ---------------------- --------------------------------------------------
-0.7 RP_MATCHES_RCVD        Envelope sender domain matches handover relay domain
-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
                            [score: 0.0000]
-0.1 DKIM_VALID_AU          Message has a valid DKIM or DK signature from author's
                            domain
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature, not necessarily valid
-0.1 DKIM_VALID             Message has at least one valid DKIM or DK signature

据我所知,一切都很好。下一步是什么?

第二次更新:
我使用过http://www.appmaildev.com/en/dkim/http://dkimcore.org/tools/再次检查。没有人报告任何问题。令人困惑。

第三次更新:
问题是不是可重现;我禁用了 DKIM 并向 Gmail 和 Yahoo 发送邮件,它们都进入了垃圾邮件文件夹。我再次启用了 DKIM 并向两者发送了邮件,只有 Yahoo 的邮件进入了收件箱。
我确信这与声誉有关。

答案1

看起来你的电子邮件进入了“灰名单”,请尝试在第一封信上加上 NOTSPAM,然后一切都会好起来。

Yahoo 还会检查邮件的最小长度。尽量将邮件长度控制在 5 个以上。

相关内容