簡介
本文介紹如何使用Google G套件中的簡單郵件傳輸協定(SMTP)伺服器配置Cisco Unified Computing Solutions(UCS)Director(UCSD)6.0.0.0以傳送電子郵件。
必要條件
需求
思科建議您瞭解以下主題:
- Google Suite解決方案的管理
- SMTP安全和配置基礎知識
採用元件
本文檔不限於特定軟體版本,但本文檔中的資訊基於UCS導向器6.0。
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路正在作用,請確保您已瞭解任何指令可能造成的影響。
背景資訊
當您檢視G Suite的Google支援頁面時,它提供3個不同的smtp伺服器。由於UCSD 6.0不支援SSL/TLS,因此您剩下的唯一選項是smtp-relay.gmail.com(埠25)或aspmx.l.google.com(埠25)。
設定
使用者名稱和密碼必須來自G Suite域中的有效使用者,並且必須設定正確的配置,如下圖所示。
驗證
選擇Save後Test Email Address將接收來自UCS目錄框的電子郵件。
疑難排解
本節提供的資訊可用於對組態進行疑難排解。
錯誤SMPT伺服器已關閉/無法訪問。
請簽入inframgr-log.txt日誌以查詢這些錯誤之一
對於smtp-relay.gmail.com錯誤
2017-08-23 07:50:01,417 [ORP-1-24] INFO doFormSubmit(MailSettingsForm.java:157) - Mail settings saved successfully
2017-08-23 07:50:01,420 [ORP-1-24] INFO sendTestEmail(MailSettingsForm.java:314) - Sending test email
2017-08-23 07:50:01,423 [ORP-1-24] INFO sendTestEmail(MailSettingsForm.java:348) - Initiating authenticated session
2017-08-23 07:50:03,152 [ORP-1-24] ERROR doFormSubmit(MailSettingsForm.java:175) - Test email failed
com.sun.mail.smtp.SMTPSendFailedException: 550-5.7.1 [XXX.YYY.ZZZ.ZZZ 1] Our system has detected an unusual rate of
550-5.7.1 unsolicited mail originating from your IP address. To protect our
550-5.7.1 users from spam, mail sent from your IP address has been blocked.
550-5.7.1 Please visit
550-5.7.1 https://support.google.com/mail/?p=UnsolicitedIPError to review our
550 5.7.1 Bulk Email Senders Guidelines. q71si912001wmd.271 - gsmtp
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1668)
at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1473)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:738)
at com.cloupia.feature.systemsettings.MailSettingsForm.sendTestEmail(MailSettingsForm.java:377)
at com.cloupia.feature.systemsettings.MailSettingsForm.doFormSubmit(MailSettingsForm.java:171)
at com.cloupia.service.cIM.inframgr.APIProvider.doFormSubmit(APIProvider.java:1311)
at sun.reflect.GeneratedMethodAccessor795.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.cloupia.fw.services.provider.ServiceProvider.executeOperation(ServiceProvider.java:758)
at com.cloupia.fw.services.provider.OperationRequestProcessor.run(OperationRequestProcessor.java:97)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
或這一個
對於aspmx.l.google.comerror
2017-08-23 07:43:17,605 [ORP-1-20] INFO doFormSubmit(MailSettingsForm.java:157) - Mail settings saved successfully
2017-08-23 07:43:17,605 [ORP-1-20] INFO sendTestEmail(MailSettingsForm.java:314) - Sending test email
2017-08-23 07:43:17,606 [ORP-1-20] INFO sendTestEmail(MailSettingsForm.java:348) - Initiating authenticated session
2017-08-23 07:43:18,162 [ORP-1-20] ERROR doFormSubmit(MailSettingsForm.java:175) - Test email failed
com.sun.mail.smtp.SMTPSendFailedException: 550-5.7.0 Mail relay denied [XXX.YYY.ZZZ.ZZZ]. Invalid credentials for relay for
550-5.7.0 one of the domains in: (as obtained from HELO and MAIL FROM).
550-5.7.0 Email is being sent from a domain or IP address which isn't registered
550-5.7.0 in your G Suite account. Please login to your G Suite account and
550-5.7.0 verify that your sending device IP address has been registered within
550-5.7.0 the G Suite SMTP Relay Settings. For more information, please visit
550 5.7.0 https://support.google.com/a/answer/6140680#maildenied w206sm117434wmd.7 - gsmtp
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1668)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1207)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:735)
at com.cloupia.feature.systemsettings.MailSettingsForm.sendTestEmail(MailSettingsForm.java:377)
at com.cloupia.feature.systemsettings.MailSettingsForm.doFormSubmit(MailSettingsForm.java:171)
at com.cloupia.service.cIM.inframgr.APIProvider.doFormSubmit(APIProvider.java:1311)
at sun.reflect.GeneratedMethodAccessor795.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.cloupia.fw.services.provider.ServiceProvider.executeOperation(ServiceProvider.java:758)
at com.cloupia.fw.services.provider.OperationRequestProcessor.run(OperationRequestProcessor.java:97)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
相關資訊
G套件幫助:https://support.google.com/a/answer/176600