59775: Acronis Cyber Backup 12.5 and 12: how to set up Gmail as Email server

Also read in:

use Google Translate

Last update: 01-05-2020

Applies to on-premises deployment of Acronis Cyber Backup 12.5 and Acronis Cyber Backup 12.

You can specify an email server that will be used to send email notifications from the management server. If you want to use a Gmail account as email service, do the following:

1. In the settings of your Gmail account, turn on Access for less secure apps:

2. In Acronis web console, navigate to Settings -> System Settings -> Email server. In Email service, select Gmail.

3. If you are using 2-Step Verification in Gmail, create an App Password as described in Google Account Help: Sign in using App Passwords. In the Account that will be used to send messages section, specify your Gmail account and this password.
If you are not using 2-Step Verification, specify your Gmail account and your usual Gmail password.

More information

If you do not allow less secure apps, email notifications are not delivered and you will see this error in logs:

Please log in via your web browser and then try again.
Learn more at https://support.google.com/mail/answer/78754 s126sm402522lja.43 - gsmtp')

If you do not specify an App Password, email notifications are not delivered and you will see this error in logs:

2017-05-17 16:19:27,088 - ERROR - --- Unhandled exception ---
2017-05-17 16:19:27,088 - ERROR - Traceback (most recent call last):
  File "C:\Program Files\Acronis\PyTools\commands\send_email.py", line 74, in create_and_send_message
    send_message(email, host, port, encryption, username, password)
  File "C:\Program Files\Acronis\PyTools\commands\send_email.py", line 64, in send_message
  File "c:\program files\acronis\pyshell\site-packages\acronis.zip\acronis\tools\email\outbox.py", line 91, in send
    with self.connection.connect() as connection:
  File "c:\program files\acronis\pyshell\site-packages\acronis.zip\acronis\tools\email\outbox.py", line 79, in connect
    return SmtpClient(**self.arguments)
  File "c:\program files\acronis\pyshell\site-packages\acronis.zip\acronis\tools\email\outbox.py", line 61, in __init__
    self.smtp.login(username, password)
  File "C:\Program Files\Acronis\PyShell\stdlib.zip\smtplib.py", line 727, in login
    raise last_exception
  File "C:\Program Files\Acronis\PyShell\stdlib.zip\smtplib.py", line 718, in login
  File "C:\Program Files\Acronis\PyShell\stdlib.zip\smtplib.py", line 639, in auth
    raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8  https://support.google.com/mail/?p=BadCredentials h76sm401675lji.10 - gsmtp')