Introduction
This article describes how to configure Cisco Unified Computing Solutions (UCS) Director (UCSD) 6.0.0.0 using the Simple Mail Transfer Protocol (SMTP) server from the Google G Suite to be able to send emails.
Prerequisites
Requirements
Cisco recommends that you have knowledge of these topics:
- Administration of Google Suite solution
- Basic knowledge of SMTP security and configuration
Components Used
This document is not restricted to specific software versions, however the information in this document is based on UCS Director 6.0.
The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.
Background Information
When you look at Google support page for G Suite it offers 3 different smtp servers. Because UCSD 6.0 doesn't support SSL/TLS, the only options that you have left are smtp-relay.gmail.com with port 25, or aspmx.l.google.com also with port 25.
Configure
The user name and password has to be from a valid user within the G Suite domain, and the proper configuration has to be setup as shown in this image.
Verify
An email from UCS Directory box would be received by the Test Email Address after select Save.
Troubleshoot
This section provides information you can use to troubleshoot your configuration.
Error SMPT server is down/not reachable.
Check in inframgr-log.txt logs for one of these errors
For smtp-relay.gmail.com error
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)
or this one
For 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)
Related Information
G Suite help: https://support.google.com/a/answer/176600