Mailer not working

I have created my own mail on my domain and I want to set up a mailer in getea. My configuration:

[mailer]
ENABLED        = true
SMTP_ADDR      = smtp.yandex.ru
SMTP_PORT      = 465
FROM           = xxx@xxx.ru
USER           = xxx@xxx.ru
PASSWD         = xxx
PROTOCOL       = smtps
HELO_HOSTNAME  = xxx.ru

When trying to send a test email, error 502. I also tried an example from the documentation for gmail, it doesn’t work. What am I doing wrong?