DataStax Help Center

Configuring OpsCenter email alerts with Google


Google has "Modern Security Standards" that will cause issues with email alerts in OpsCenter. This article will explain how to configure Google with OpsCenter.


User has configured the email.conf file for OpsCenter email alerts but is failing to receive the alerts. When parsing through the opscenterd.log file, one of the following types of error messages will be noticed:

2 Step Verification ERROR

2014-09-16 17:40:59+0000 [stressed] ERROR: 534 5.7.9 Application-specific password required. Learn more at
5.7.9 qi1sm15180252pac.46 - gsmtp
<<< 334 UGFzc3dvcmQ6
>>> c2hheW5hMzEx
<<< 534-5.7.9 Application-specific password required. Learn more at
<<< 534 5.7.9 qi1sm15180252pac.46 - gsmtp
Error sending event to via email
2014-09-16 17:40:59+0000 [] INFO: Stopping factory <twisted.mail.smtp.ESMTPSenderFactory instance at 0x35191b8>

Less Secured Apps ERROR

2014-09-19 17:35:54+0000 [stressed] ERROR: 534 5.7.14 <
5.7.14 uhl-yp7SrNPUAPE4AhrfasGg7cP9vozismWMdp_lwKeSGJJq2llMbEgBHk9SkKZPL8BSTi
5.7.14 tVgQ5dqk5uutuivTwdcZc-ZXFefYw36PCi-1og5P4Q3D9517NAoRoqGs7Jnl_s3h-auCS-
5.7.14 kQY3sgQ> Please log in via your web browser and then try again.
5.7.14 Learn more at
5.7.14 bv5sm2428257pbc.20 - gsmtp
<<< 534-5.7.14 tVgQ5dqk5uutuivTwdcZc-ZXFefYw36PCi-1og5P4Q3D9517NAoRoqGs7Jnl_s3h-auCS-
<<< 534-5.7.14 kQY3sgQ> Please log in via your web browser and then try again.
<<< 534-5.7.14 Learn more at
<<< 534 5.7.14 bv5sm2428257pbc.20 - gsmtp
Error sending event to via email
2014-09-19 17:35:54+0000 [] INFO: Stopping factory <twisted.mail.smtp.ESMTPSenderFactory instance at 0x47b81b8>


The first error message from above is caused by Google's 2-step verification. Google not only requires a password, but authentication via a secondary generated passcode to verify that it is the correct user. Without the second verification, access is revoked for any sign in attempts.

The second error message is caused by Google's modern security standards settings. Google prevents any sign on attempts that it deems suspicious. There is no additional passcode for verification. But sign on attempts from any new device that cannot be verified will be rejected.


2 Step Verification ERROR solution

Creating an App Specific Password for OpsCenter:

  1. Log in to the google account that is being used for the OpsCenter email alerts.
  2. At the top of the page, click on the Security tab.
  3. In the Password section, next to App passwords, click on the Settings link.
  4. Enter the google password associated with the account
  5. Enter your verification code from Google.
  6. On the bottom of the App passwords page, from the Select App dropdown, choose Other (Custom Name).
  7. Enter a name for the OpsCenter email service and click on the Generate button.
  8. A pop-up window will appear with the generated password:
  9. In the email.conf file, replace the existing google password in the smtp_pass= field with the generated password.
  10. Restart OpsCenter.

Less Secured Apps ERROR solution

From the server that is running OpsCenter, you will need to log in to the google mail account. If you have a GUI enabled, simply navigate your browser to your login screen and enter your credentials. 

If you do not have a GUI, use a text-based browser such as Lynx to log in to your email from the OpsCenter server.

Logging in to Google mail from OpsCenter server:

  1. Navigate with your browser to

  2. Sign in to your email account
  3. You will be asked to verify some information to verify that you are the account owner.
  4. Once you have logged in, OpsCenter will be able to access the gmail server. 
  5. If you do not notice alerts showing up, restart OpsCenter



Was this article helpful?
1 out of 1 found this helpful
Have more questions? Submit a request


Powered by Zendesk