我有确切的问题,就像在这篇文章中一样:Sendmail to local domain ignoring MX records。我也在使用像 GMail For Your Domain 这样的电子邮件提供商(它存储和管理您的邮件)。我直接从我的服务器发送邮件,但接收邮件是通过 Yandex(电子邮件提供商)完成的。由于服务器托管一个论坛,我更喜欢直接从它发送邮件,因为使用其他邮件提供商会减慢速度。此外,当我向订阅者发送 300.000 封电子邮件时,其他电子邮件提供商肯定会阻止我认为我在发送垃圾邮件。
我的 DNS 区域现在是:
;
; GSMFORUM.RU
;
$TTL 1H
gsmforum.ru. SOA ns1.hc.ru. support.hc.ru. (
2009122268 ; Serial
1H ; Refresh
30M ; Retry
1W ; Expire
1H ) ; Minimum
gsmforum.ru. NS ns1.hc.ru.
gsmforum.ru. NS ns2.hc.ru.
@ A 79.174.68.223
*.gsmforum.ru. CNAME @
ns1 A 79.174.68.223
ns2 A 79.174.68.224
@ MX 10 mx.yandex.ru.
mail CNAME domain.mail.yandex.net.
yamail-xxxxxxxxx CNAME mail.yandex.ru.
Run Code Online (Sandbox Code Playgroud)
服务器主机名为 server.gsmforum.ru。可能是这个原因?有人可以解释一下原因吗(使 sendmail 将域视为本地的规则)?我能轻易改变吗
*.gsmforum.ru. …Run Code Online (Sandbox Code Playgroud) 我安装了 postfix 并设置了通过 google 应用程序进行中继,但是当我将邮件发送到 postfix 时,它会使用我在 main.cf 中指定的 ONE 帐户将其中继到 google 应用程序。
有没有办法更动态地做到这一点。理想情况下,用户在发送邮件时使用 postfix 进行身份验证,而 postfix 将使用该用户名和密码对 gmail 进行身份验证。这是可能的,或者下一个最佳解决方案是什么?
提前致谢
我想使用 openssl s_client 访问 Gmail POP3S 服务器。我正在做以下事情:
$ openssl s_client -connect pop.gmail.com:995
+OK Gpop ready for requests from <removed: ip> d11pf35377217wam.36
USER <removed: user@gmail.com>
+OK send PASS
PASS <removed: password>
+OK Welcome.
LIST
+OK 1 messages (2197 bytes)
1 2197
.
STAT
+OK 1 2197
RETR 1
RENEGOTIATING
Run Code Online (Sandbox Code Playgroud)
问题是我永远无法执行 RETR 命令。“RENEGOTIATING”时它总是挂起。
我缺少什么?
我有一个带有 Postfix 的 VPS。电子邮件正在工作 - 我可以向它发送消息和从它发送消息,并使用mutt我的 GMail 帐户进行测试。
但是,我想将发送到我的 VPS 的所有邮件转发到我的 GMail 帐户,以便全部集中在一个地方。
我尝试在我的.forward. 它们不会出现在 中mutt,也不会出现在 GMail 中。
mail.log建议电子邮件已发送,并且我在mail.err. 从我的角度来看,GMail 似乎只是接收电子邮件并将其丢弃,但这不可能是正确的!
附录:在中指定我的转发电子邮件地址/etc/postfix/virtual会导致相同的结果:
Apr 4 08:49:28 vps-375 postfix/smtpd[16235]: 8062044D1B2F: client=mail-qw0-f48.google.com[209.85.216.48]
Apr 4 08:49:28 vps-375 postfix/cleanup[16239]: 8062044D1B2F: message-id=<BANLkTina6U==71+ZW-bafMbE6QCHqeYQ4g@mail.gmail.com>
Apr 4 08:49:28 vps-375 postfix/qmgr[15970]: 8062044D1B2F: from=<redacted@gmail.com>, size=1581, nrcpt=1 (queue active)
Apr 4 08:49:29 vps-375 postfix/smtp[16240]: 8062044D1B2F: to=<redacted+domain@gmail.com>, orig_to=<dave@domain.net>, relay=gmail-smtp-in.l.google.com[209.85.143.27]:25, delay=1.3, delays=0.41/0.02/0.36/0.52, dsn=2.0.0, status=sent (250 2.0.0 OK 1301903372 m53si9513199wej.191)
Apr 4 08:49:29 …Run Code Online (Sandbox Code Playgroud) 如何找出 Gmail 似乎拒绝来自我的特定 IP 范围的连接的原因?
尝试使用在 Amazon EC2 服务的 Linux 机器上运行的 Django 中的电子邮件工具通过 smtp.gmail.com 发送电子邮件时,出现“连接超时”错误。
奇怪的是,我可以使用 sendmail 发送邮件,但它最初得到相同的超时错误,然后回退到接受连接的备用服务器,例如
~$ echo -e "Subject:test subject\ntest body\n" | sendmail -v myuser@mydomain
Loading lookup modules from /usr/lib/exim/4.72-1.fc13/lookups
Loaded 0 lookup modules
LOG: MAIN
<= app@domain U=app P=local S=443
Loading lookup modules from
/usr/lib/exim/4.72-1.fc13/lookups
Loaded 0 lookup modules
delivering 1ReChV-0001Hx-Ss
Connecting to aspmx.l.google.com [74.125.93.26]:25 ... failed:
Connection timed out (timeout=5m)
LOG: MAIN
aspmx.l.google.com [74.125.93.26] Connection timed out
Connecting to ALT1.aspmx.l.google.com [173.194.66.26]:25 ... connected
Run Code Online (Sandbox Code Playgroud)
这仅发生在亚马逊的云中。我可以使用相同的凭据从我的本地主机连接到 smtp.gmail.com,然后发送电子邮件就好了。而且我可以从任何地方 …
我正在使用 Gmail SMTP 和 WordPress 来通过我的自定义域发送邮件(user@example.com)。电子邮件已成功发送,但始终位于每个网络邮件提供商的垃圾邮件文件夹中(例如 Gmail、Rediffmail、Yahoo、Outlook 等)
Gmail SMTP server address: smtp.gmail.com
Gmail SMTP name: Your full name
Gmail SMTP username: Your full Gmail address (e.g. you@gmail.com)
Gmail SMTP password: The password that you use to log in to Gmail
Gmail SMTP port (TLS): 587
Gmail SMTP port (SSL): 465
Run Code Online (Sandbox Code Playgroud)
发生这种情况是因为他们无法验证该电子邮件的发件人以及 DNS 记录(例如 SPF 和 DKIM)。我用谷歌搜索,得到了 Gmail 的 SPF 记录v=spf1 a include:_spf.google.com ~all
但是如何为我的 Gmail SMTP 生成 DKIM。我已经检查了这个Google文档: https: //support.google.com/a/answer/180504#turn-on-dkim,但它是关于Google Business Mail/WorkMail而不是免费Gmail (user@gmail.com)。 …
我已经设置了一个带有 postfix 的服务器来发送邮件。但是,当我尝试向 Gmail 帐户发送电子邮件时,出现以下错误:
May 16 23:41:47 vps4195 postfix/smtp[15949]: certificate verification failed for gmail-smtp-in.l.google.com: num=20:unable to get local issuer certificate
May 16 23:41:47 vps4195 postfix/smtp[15949]: certificate verification failed for gmail-smtp-in.l.google.com: num=27:certificate not trusted
Run Code Online (Sandbox Code Playgroud)
在这些错误之后,邮件会被发送到 gmail 帐户,但邮件几乎总是会进入垃圾邮件目录,即使在 gmail 中没有使用邮件过滤器也是如此。
那么我怎样才能摆脱这些错误呢?
附:可能这些信息不足以帮助您解决此问题,但我并不是这方面的专家,因此请告诉我是否需要发布更多信息。
编辑:系统后缀是 CentOS 5.5 (VPS)
可能的重复:
如何发送电子邮件并避免将它们归类为垃圾邮件
我一直在开发一个 PHP 应用程序,该应用程序的功能之一是能够向用户发送电子邮件。但是,当我尝试通过应用程序 (SMTP) 向 Gmail 和 Hotmail 帐户发送电子邮件时,它们总是转到垃圾邮件/垃圾箱。当我使用 Google SMTP 发送它们时不会发生这种情况。这些电子邮件已正确发送到收件箱。
我所做的:
- 设置反向 DNS
- 设置域密钥 (DKIM) 和 SPF (v=spf1 +a +mx +ip4:184.107.222.2 ?all)
- 运行各种 IP/域检查,但我没有看到有任何问题。
- 注册SNDS。检查我的IP后,它说“所有指定的IP都处于正常状态”。
- 联系 Gmail 和 Hotmail 支持。他们没有发现任何会阻止我的邮件到达他们的客户的即时消息,并建议我加入 Sender Score Certified Mail Program(尽管他们不保证它会保证电子邮件可以送达他们的客户)。
进入垃圾邮件箱的电子邮件标头示例(站点名称被 xxx 替换):
Delivered-To: yyy@gmail.com
Received: by 10.50.17.8 with SMTP id k8csp200979igd;
Sun, 23 Dec 2012 05:13:19 -0800 (PST)
X-Received: by 10.50.53.162 with SMTP id c2mr13168931igp.112.1356268399035;
Sun, 23 Dec 2012 05:13:19 -0800 (PST)
Return-Path: <admin@xxx.com>
Received: …Run Code Online (Sandbox Code Playgroud) 我设置了 postfix 将电子邮件转发到我的 gmail 帐户。我可以从这台服务器向我的 gmail 发送电子邮件,我可以接收外部电子邮件并且它被正确转发(甚至从其他 gmail 帐户)。但是,我无法从我的 gmail 向这台机器发送电子邮件。
我在 postfix 的日志中没有收到错误消息,一切看起来都很好。电子邮件没有被标记为垃圾邮件,它只是从未到达我的 Gmail 收件箱。
这是后缀:
postfix/cleanup[4435]: B5BE7E0A06: message-id=<CABHVO+zD_LCYXWWiABRvXxb=rjez4uBXGo2N9__zkOWo1KVwOA@mail.gmail.com>
postfix/qmgr[4183]: B5BE7E0A06: from=<stefano.palazzo@gmail.com>, size=1416, nrcpt=1 (queue active)
postfix/smtpd[4431]: disconnect from mail-wm0-f46.google.com[74.125.82.46]
postfix/smtp[4436]: B5BE7E0A06: to=<stefano.palazzo@gmail.com>, orig_to=<hello@xn--y-5ga.com>, relay=gmail-smtp-in.l.google.com[64.233.166.26]:25, delay=0.13, delays=0.06/0/0.03/0.04, dsn=2.0.0, status=sent (250 2.0.0 OK 1449920800 r66si5494735wmd.91 - gsmtp)
postfix/qmgr[4183]: B5BE7E0A06: removed
Run Code Online (Sandbox Code Playgroud)
还有我的后缀配置。
SSL 证书对域有效。域的 spf 记录如下所示:
TXT "v=spf1 ip4:212.47.242.239 ~all"
Run Code Online (Sandbox Code Playgroud)
这是怎么回事?我错过了什么?
gmail ×10
postfix ×4
email ×3
google ×2
smtp ×2
application ×1
cname-record ×1
dkim ×1
email-server ×1
forwarding ×1
g-suite ×1
linux ×1
localhost ×1
mailing-list ×1
openssl ×1
pop3 ×1
sendmail ×1
spam ×1
spf ×1
ubuntu ×1
users ×1