我用了这在 Ubuntu 上配置的教程sendmail
。按照每个步骤操作,当我测试它时,它似乎已经起作用了,但我没有收到任何邮件(甚至在垃圾邮件文件夹中也没有)
以下是测试消息的日志:
050 >>> MAIL From:<[email protected]> SIZE=345 AUTH=<>
050 250 2.1.0 OK ek1sm23505399vdc.28 - gsmtp
050 >>> RCPT To:<######@gmail.com>
050 250 2.1.5 OK ek1sm23505399vdc.28 - gsmtp
050 >>> DATA
050 354 Go ahead ek1sm23505399vdc.28 - gsmtp
050 >>> .
050 250 2.0.0 OK 1401150762 ek1sm23505399vdc.28 - gsmtp
050 <########@gmail.com>... Sent (OK 1401150762 ek1sm23505399vdc.28 - gsmtp)
250 2.0.0 s4R0WdYN007263 Message accepted for delivery
######@gmail.com... Sent (s4R0WdYN007263 Message accepted for delivery)
这是我的/var/log/mail.log
May 26 21:32:39 UX-BLUEROOM sendmail[7262]: s4R0Wdxq007262: from=christian, size=105, class=0, nrcpts=1, msgid=<[email protected]>, relay=christian@localhost
May 26 21:32:40 UX-BLUEROOM sm-mta[7263]: s4R0WdYN007263: from=<[email protected]>, size=345, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
May 26 21:32:41 UX-BLUEROOM sm-mta[7263]: STARTTLS=client, relay=gmail-smtp-msa.l.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=ECDHE-RSA-RC4-SHA, bits=128/128
May 26 21:32:42 UX-BLUEROOM sm-mta[7263]: s4R0WdYN007263: to=<######@gmail.com>, ctladdr=<[email protected]> (1000/1000), delay=00:00:02, xdelay=00:00:02, mailer=relay, pri=30345, relay=gmail-smtp-msa.l.google.com. [173.194.75.109], dsn=2.0.0, stat=Sent (OK 1401150762 ek1sm23505399vdc.28 - gsmtp)
May 26 21:32:42 UX-BLUEROOM sendmail[7262]: s4R0Wdxq007262: to=#####@gmail.com, ctladdr=christian (1000/1000), delay=00:00:03, xdelay=00:00:03, mailer=relay, pri=30105, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (s4R0WdYN007263 Message accepted for delivery)
答案1
如果没有有效域名,Google 不会接受您的邮件。他们会声称接受这些邮件,但这主要是为了防止垃圾邮件发送者发现这一点。
我知道这不是针对 Google 的,但这是我发现的正确配置邮件服务器的最全面的信息来源:http://mail.live.com/mail/troubleshooting.aspx