![Sendmail 到 Google Apps 域中继](https://linux22.com/image/554206/Sendmail%20%E5%88%B0%20Google%20Apps%20%E5%9F%9F%E4%B8%AD%E7%BB%A7.png)
我管理的站点已在 Google Apps 上配置了电子邮件。因此,所有电子邮件帐户都在那里。因此,我不想让我的本地 senmail 接受我域的邮件。相反,我应该将其发送到 gmail。我在 sendmail.mc 的末尾添加了以下内容并重新编译了 sendmail.cf:
define(LUSER_RELAY,`aspmx3.googlemail.com')dnl
但是,我仍然收到以下错误:
Jul 2 22:47:23 culinaryhalloffame sendmail[21267]: p632lNDk021267: from=apache, size=753, class=0, nrcpts=1, msgid=<[email protected]>, relay=apache@localhost
Jul 2 22:47:23 culinaryhalloffame sendmail[21270]: p632lNkV021270: from=<[email protected]>, size=851, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Jul 2 22:47:23 culinaryhalloffame sendmail[21267]: p632lNDk021267: [email protected], ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30753, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (p632lNkV021270 Message accepted for delivery)
Jul 2 22:47:24 culinaryhalloffame sendmail[21272]: STARTTLS=client, relay=aspmx3.googlemail.com., version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128
Jul 2 22:47:27 culinaryhalloffame sendmail[21272]: p632lNkV021270: to=<[email protected]>, ctladdr=<[email protected]> (48/48), delay=00:00:04, xdelay=00:00:04, mailer=relay, pri=120851, relay=aspmx3.googlemail.com. [72.14.213.27], dsn=5.1.1, stat=User unknown
Jul 2 22:47:27 culinaryhalloffame sendmail[21272]: p632lNkV021270: p632lRkV021272: DSN: User unknown
Jul 2 22:47:27 culinaryhalloffame sendmail[21272]: p632lRkV021272: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32102, dsn=2.0.0, stat=Sent
有什么提示吗?我不想进行 SMTP 身份验证。我只希望外发电子邮件发送到 Gmail,而不是在本地被拦截。
谢谢您的帮助。
答案1
MAIL_HUB
似乎比 更符合您的需求LUSER_RELAY
。毕竟,您确实声明全部帐户位于 Google Apps 上。