Sendmail
Sendmail 到 Google Apps 域中繼
我管理的網站在 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=<13096612437327@culinarybytes.com>, relay=apache@localhost Jul 2 22:47:23 culinaryhalloffame sendmail[21270]: p632lNkV021270: from=<apache@culinaryhalloffame.com>, size=851, class=0, nrcpts=1, msgid=<13096612437327@culinarybytes.com>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1] Jul 2 22:47:23 culinaryhalloffame sendmail[21267]: p632lNDk021267: to=recluze@culinaryhalloffame.com, 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=<recluze@culinaryhalloffame.com>, ctladdr=<apache@culinaryhalloffame.com> (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,而不是在本地被截獲。
謝謝您的幫助。
MAIL_HUB
似乎比 . 更適合您的需求LUSER_RELAY
。畢竟,您確實聲明所有帳戶都在 Google Apps 上。