Postfix SMTP 邮件被 Gmail 和 Yahoo 标记为垃圾邮件

Postfix SMTP 邮件被 Gmail 和 Yahoo 标记为垃圾邮件

我无法通过 Gmail 和 Yahoo 的垃圾邮件过滤器获取少量合法电子邮件。

我已按照 Gmail 的指南进行操作:https://support.google.com/mail/answer/81126

我也确认过邮件测试器我的 SPF、DKIM 等配置正确。使用 MXToolbox 进行额外测试可确认。

标记为垃圾邮件的邮件标题:

Delivered-To: [email protected]
Received: by 10.112.56.241 with SMTP id d17csp86403lbq;
    Thu, 6 Nov 2014 11:15:17 -0800 (PST)
X-Received: by 10.224.74.194 with SMTP id v2mr357017qaj.60.1415301316654;
    Thu, 06 Nov 2014 11:15:16 -0800 (PST)
Return-Path: <[email protected]>
Received: from otto.ruestow.me (otto.ruestow.me. [104.200.30.156])
    by mx.google.com with ESMTP id i51si753158qge.66.2014.11.06.11.15.15
    for <[email protected]>;
    Thu, 06 Nov 2014 11:15:16 -0800 (PST)
Received-SPF: pass (google.com: domain of [email protected] designates 104.200.30.156 as permitted sender) client-ip=104.200.30.156;
Authentication-Results: mx.google.com;
   spf=pass (google.com: domain of [email protected] designates 104.200.30.156 as permitted sender) [email protected];
   dkim=pass (test mode) [email protected]
Received: from unknown (7.sub-70-195-135.myvzw.com [70.195.135.7])
by otto.ruestow.me (Postfix) with ESMTPSA id 489E310EBF;
Thu,  6 Nov 2014 19:15:15 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruestow.me; s=mail;
t=1415301315; bh=SYpysskAyXNoTxgk6KAYV1J+Y66Vdru6zanrsAPM7xQ=;
h=Date:From:To:Subject;
b=W/In0Q7EyxGtHeDW4eMQfIcqkzRiiysVhpTi2Mzp627ctZ7hHPVOzk17ZlKYM+goc
 XFpCZJDGCMNKL8jLSnJ+c1AwE8F9rELE9UR3Q/6fUReo01p/JCAnKxRI3jRkT8dDfC
 7fqanP1qQlLU2ac4NBfrk4oEKMDyz4GreuxCYCW8=
Date: Thu, 6 Nov 2014 14:15:13 -0500
From: test <[email protected]>
To: [email protected], [email protected]
Subject: hello old friend
Message-ID: <20141106141513.000075c0@unknown>
X-Mailer: Claws Mail 3.9.1 (GTK+ 2.24.24; i686-w64-mingw32)
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

/etc/postfix/main.cf

# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

readme_directory = no

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/dovecot.pem
smtpd_tls_key_file=/etc/ssl/private/dovecot.pem
smtpd_use_tls=yes
smtpd_tls_auth_only = yes

#Enabling SMTP for authenticated users, and handing off authentication to Dovecot
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes

smtpd_recipient_restrictions =
    permit_sasl_authenticated,
    permit_mynetworks,
    reject_unauth_destination

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = otto.ruestow.me
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4

#Handing off local delivery to Dovecot's LMTP, and telling it where to store mail
virtual_transport = lmtp:unix:private/dovecot-lmtp

#Virtual domains, users, and aliases
#virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_domains = ruestow.me, otto.ruestow.me, localhost.ruestow.me, localhost
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf

# DKIM
milter_default_action = accept
milter_protocol = 2
smtpd_milters = inet:localhost:8891,inet:localhost:8892
non_smtpd_milters = inet:localhost:8891,inet:localhost:8892

我怀疑标题条目:

Received: from unknown (7.sub-70-195-135.myvzw.com [70.195.135.7])
by otto.ruestow.me (Postfix) with ESMTPSA id 489E310EBF;
Thu,  6 Nov 2014 19:15:15 +0000 (UTC)

可能是问题所在。我接下来应该排除哪些故障才能正确发送邮件?

** 更新 ** 我已重新配置我的邮件客户端,以在消息 ID 中发送电子邮件地址,并在“已接收:发件人”标头条目中设置域,但这些邮件仍被标记为垃圾邮件。我被难住了。

Received: from ruestow.me (7.sub-70-195-135.myvzw.com [70.195.135.7])
by otto.ruestow.me (Postfix) with ESMTPSA id D97CF10ED7
for <[email protected]>; Thu,  6 Nov 2014 20:41:11 +0000 (UTC)

Message-ID: <[email protected]>

答案1

不确定这对您是否仍然有用,但无论如何我都会将其发布给找到此帖子的其他人。

唯一真正的解决方案是使用 Google 信任的 CA 签名的证书或找到 SMTP 中继。

在某些情况下,您可以使用 ISP 的 SMTP 服务器作为中继。

相关内容