T
T
Theory Theory2020-07-22 18:01:13
linux
Theory Theory, 2020-07-22 18:01:13

Why is smtp not working?

ssmtp.conf file:
root=(mine)@mail.ru
mailhub=smtp.mail.ru:465
rewriteDomain=mail.ru
hostname=linuxuser-desktop
FromLineOverride=YES
AuthUser=(mine)@mail.ru
AuthPass=(mypassword)
UseSTARTTLS=YES

file revaliases
root:[email protected]:smtp.mail.ru:465

PHP command:
mail($adminEmail, $subject, $message);

As a result:
The site takes a long time to load and mail() just returns false

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hint000, 2020-07-23
@Narbek

UseSTARTTLS=YES
Here is the joint.
Mail.ru wants a different type of encryption, SSL/TLS instead of STARTTLS.
They clearly describe this: https://help.mail.ru/mail/mailer/popsmtp

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question