Email errors

if settings:

DISCOURSE_DEVELOPER_EMAILS: 'admin@plemya-x.ru'
DISCOURSE_SMTP_ADDRESS: smtp.beget.com
DISCOURSE_SMTP_PORT: 2525 or 25
DISCOURSE_SMTP_USER_NAME: admin@plemya-x.ru
DISCOURSE_SMTP_PASSWORD: ""
#DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)
DISCOURSE_SMTP_DOMAIN: plemya-x.ru
DISCOURSE_NOTIFICATION_EMAIL: admin@plemya-x.ru
LETSENCRYPT_ACCOUNT_EMAIL: admin@plemya-x.ru

error:

Jobs::HandledExceptionWrapper: Wrapped Net::SMTPAuthenticationError: 504 PLAIN authentication mechanism not supported 

if settings:

DISCOURSE_DEVELOPER_EMAILS: 'admin@plemya-x.ru'
DISCOURSE_SMTP_ADDRESS: smtp.beget.com
DISCOURSE_SMTP_PORT: 465
DISCOURSE_SMTP_USER_NAME: admin@plemya-x.ru
DISCOURSE_SMTP_PASSWORD: ""
#DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)
DISCOURSE_SMTP_DOMAIN: plemya-x.ru
DISCOURSE_NOTIFICATION_EMAIL: admin@plemya-x.ru
LETSENCRYPT_ACCOUNT_EMAIL: admin@plemya-x.ru

error:

Jobs::HandledExceptionWrapper: Wrapped Net::ReadTimeout: Net::ReadTimeout with #<TCPSocket:(closed)>

this option not effect in any status

DISCOURSE_SMTP_ENABLE_START_TLS: true

I found solution. In app.yml add:

DISCOURSE_SMTP_AUTHENTICATION: login