Problem sending activation to users

Good morning,

We installed a Seafile zserver 7.1.4 on Debian 10.
Everything works fine except sending activation emails.
Users can register, but accounts are activated by the administrator.
I set the data according to the instructions

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_USER = 'Username@domain.pl'
EMAIL_HOST_PASSWORD = 'ZZZXXXXX'
EMAIL_PORT = 587
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = EMAIL_HOST_USER

The seahub logs still display a message
2020-06-04 08: 54: 48,554 [ERROR] registration.models: 326 notify_admins_on_activate_request (535, b'5.7.8 Username and Password not accepted. Learn more at \ n5.7.8 https://support.google.com/ mail /? p = BadCredentials 5sm1061724ljr.64 - gsmtp ')
I have enabled double verification in my GSuite account, I generated the application password and still the same. I turned off double verification and still nothing. The same message all the time

Could it be GSuiteā€™s fault for education?

Thank you for your help

OKi succeeded.
If dual verification is enabled, you must generate the application password in the GSuite account settings.
This password should be entered in the configuration,
but instead
smtp.gmail.com
use
smtp-relay.gmail.com.

Works correctly.