简介
本文介绍如何使用Google G套件中的简单邮件传输协议(SMTP)服务器配置思科统一计算解决方案(UCS)导向器(UCSD)6.0.0.0,以便能够发送电子邮件。
先决条件
要求
Cisco 建议您了解以下主题:
- Google Suite解决方案的管理
- SMTP安全和配置的基本知识
使用的组件
本文档不限于特定软件版本,但本文档中的信息基于UCS Director 6.0。
本文档中的信息都是基于特定实验室环境中的设备编写的。本文档中使用的所有设备最初均采用原始(默认)配置。如果您使用的是真实网络,请确保您已经了解所有命令的潜在影响。
背景信息
当您查看G Suite的Google支持页时,它提供3个不同的smtp服务器。由于UCSD 6.0不支持SSL/TLS,因此您剩下的唯一选项是smtp-relay.gmail.com(端口25)或aspmx.l.google.com(端口25)。
配置
用户名和密码必须来自G Suite域内的有效用户,并且必须设置正确的配置,如此图所示。
验证
选择“保存”后,“测试电子邮件地址”(Test Email Address)将收到来自UCS Directory(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