我有一个使用exim4作为卫星电子邮件服务器设置为通过Google Apps发送邮件的Ubuntu VPS。
邮件意味着去Google托pipe的地址得到交付。 这意味着像“联系我们”networking表单这样的function正在发挥作用,因为它可以传送到Google Apps上托pipe的域名。
来自Googlenetworking界面的传入和传出电子邮件正常工作,所有MXlogging看起来都是按顺序排列的。
但是,由于某种原因,从服务器发送电子邮件到非Google托pipe的地址(如ASPMX.L.GOOGLE.COM不知道的地址)。
这里是我得到的exim4日志消息:
2009-05-19 13:25:54 1M6PKM-0008UQ-KL <= [email protected] U=user P=local S=1129 2009-05-19 13:25:58 1M6PKM-0008UQ-KL ** [email protected] R=smarthost T=remote_smtp_smarthost: SMTP error from remote mail server after RCPT TO:<[email protected]>: host gmail-smtp-in.l.google.com [209.85.217.49]: 550-5.1.1 The email account that you tried to reach does not exist. Please try\n550-5.1.1 double-checking the recipient's email address for typos or\n550-5.1.1 unnecessary spaces. Learn more at\n550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 1si10609358gxk.44 2009-05-19 13:25:58 1M6PKQ-0008UU-Bh <= <> R=1M6PKM-0008UQ-KL U=Debian-exim P=local S=2354 2009-05-19 13:25:58 1M6PKM-0008UQ-KL Completed
我可能错过了一些设置,无论是在服务器还是在Google Apps本身?
很显然,我需要在某个地方告诉某个configuration“不,这不适合你,只是发送”。 有什么build议么? (我很乐意发布任何configuration)
我已经广泛Googlesearch没有find任何具体的问题。
编辑:我还要补充说,我在我的Google电子邮件帐户中(在垃圾邮件文件夹中):
This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: [email protected] SMTP error from remote mail server after RCPT TO:<[email protected]>: host gmail-smtp-in.l.google.com [209.85.217.49]: 550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1 http://mail.google.com/support/bin/answer.py?answer=6596 1si10609358gxk.44 ------ This is a copy of the message, including all the headers. ------ Return-path: <[email protected]> Received: from zeta by example.com with local (Exim 4.69) (envelope-from <[email protected]>) id 1M6PKM-0008UQ-KL for [email protected]; Tue, 19 May 2009 13:25:54 +0000 To: [email protected] Subject: Account details for Test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8Bit X-Mailer: Drupal Errors-To: [email protected] Sender: [email protected] Reply-To: [email protected] From: [email protected] Message-Id: <[email protected]> Date: Tue, 19 May 2009 13:25:54 +0000 Test, Thank you for registering...<snip>
至于为什么你的智能主机configuration不起作用 – 你有谷歌应用程序的高级版本?
您不能使用免费版本作为出站中继。 尝试这样做可能会显示为“未find用户”,因为可接受的地址范围仅限于Google Apps托pipe的域。
http://www.google.com/support/a/bin/answer.py?hl=en&answer=60730
“您必须拥有教育版或专业版才能使用Google Apps出站网关function。”
好的,这看起来像是我在概念上的一个断层。
我有服务器设置为使用智能主机。 它应该被设置为一个互联网站点。 如果configuration正确,它将直接连接到收件人,不需要中继。 只要反向DNS指向正确的域,似乎是没有问题的。
我跑了:dpkg-reconfigure exim4-config
并select只在127.0.0.1上收听的“互联网网站”。 这样,我不能采取传入连接(这是所需的结果),但仍可以发送邮件。