我pipe理的网站在Google Apps上configuration了电子邮件。 所以,所有的电子邮件帐户在那里。 因此,我不想让我的本地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
任何提示? 我不想SMTPauthentication。 我只想将传出的电子邮件发送到Gmail,而不是在本地拦截。
谢谢您的帮助。
MAIL_HUB
比LUSER_RELAY
更适合您的需求。 毕竟,您确实知道所有帐户都在Google Apps上。