AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 48611
In Process
Jason Champion
Jason Champion
Asked: 2009-05-20 05:48:53 +0800 CST2009-05-20 05:48:53 +0800 CST 2009-05-20 05:48:53 +0800 CST

如何在 Ubuntu 上配置 Exim4 以使用 Google Apps 发送邮件?

  • 772

我有一个 Ubuntu VPS,它使用 exim4 作为卫星电子邮件服务器,设置为通过 Google Apps 发送邮件。

原本要发送到由 Google 托管的地址的邮件会被递送。这意味着“联系我们”网络表单之类的东西可以正常工作,因为它会发送到托管在 Google Apps 上的域。

来自 Google 网络界面的传入和传出电子邮件工作正常,所有 MX 记录似乎都井井有条。

但是,出于某种原因,将外发电子邮件从服务器发送到非 Google 托管的地址(如 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 本身中?

很明显,我需要在某处告诉配置“不,这不适合你,只是发送它”。有什么建议么?(我很乐意发布任何配置)

我在 Google 上进行了广泛搜索,但没有找到任何特定于我的问题的内容。

编辑:我还要补充一点,我在我的 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>
email exim g-suite satellite
  • 2 2 个回答
  • 2953 Views

2 个回答

  • Voted
  1. James F
    2009-08-01T10:11:14+08:002009-08-01T10:11:14+08:00

    至于为什么您的智能主机配置不起作用 - 您是否拥有 Google Apps 的高级版?

    您不能将免费版本用作出站中继。尝试这样做可能会显示为“未找到用户”,因为可接受的地址范围仅限于 Google Apps 托管的域。

    http://www.google.com/support/a/bin/answer.py?hl=en&answer=60730

    “您必须拥有教育版或专业版才能使用 Google Apps 出站网关功能。”

    • 1
  2. Jason Champion
    2009-05-20T10:49:18+08:002009-05-20T10:49:18+08:00

    好的,看起来这对我来说有点概念上的脱节。

    我将服务器设置为使用智能主机。它应该被设置为一个互联网站点。正确配置后,它将直接连接到收件人,无需中继。只要反向 DNS 指向正确的域,它似乎就没有问题。

    我跑了:dpkg-reconfigure exim4-config

    并选择仅在 127.0.0.1 上收听的“互联网站点”。这样我就不能接受传入的连接(这是预期的结果),但仍然可以发送邮件。

    • 0

相关问题

  • 其他类似 500 英里电子邮件问题的案例?

  • 你使用什么样的邮件服务器?

  • 针对大量邮件的 SMTP 服务的建议 [关闭]

  • 多操作系统环境的首选电子邮件客户端

  • Exchange 2007 的备份解决方案

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    从 IP 地址解析主机名

    • 8 个回答
  • Marko Smith

    如何按大小对 du -h 输出进行排序

    • 30 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    Windows 中执行反向 DNS 查找的命令行实用程序是什么?

    • 14 个回答
  • Marko Smith

    如何检查 Windows 机器上的端口是否被阻塞?

    • 4 个回答
  • Marko Smith

    我应该打开哪个端口以允许远程桌面?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    MikeN 在 Nginx 中,如何在维护子域的同时将所有 http 请求重写为 https? 2009-09-22 06:04:43 +0800 CST
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    0x89 bash中的双方括号和单方括号有什么区别? 2009-08-10 13:11:51 +0800 CST
  • Martin Hope
    kch 如何更改我的私钥密码? 2009-08-06 21:37:57 +0800 CST
  • Martin Hope
    Kyle Brandt IPv4 子网如何工作? 2009-08-05 06:05:31 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve