A
A
Alexander2013-08-12 22:40:19
linux
Alexander, 2013-08-12 22:40:19

Ssmtp not sending emails via mail()?

Configured ssmtp to send via Yandex smtp (pdd).
Sends from the console. But not over the web.
ssmtp.conf:

[email protected]

Mailhub=smtp.yandex.ru:465

#RewriteDomain=

#Hostname=name

#FromLineOverride=YES

[email protected]

AuthPass=pass

UseTLS=YES

#UseSTARTTLS=YES

The scripts work on behalf of www-data (a bundle of nginx and php-fpm)
revaliases:
root:[email protected]:smtp.yandex.ru:465
www-data:[email protected]:smtp:yandex.ru:465

The symlink was also created during installation.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
J
juffinhalli, 2013-08-13
@juffinhalli

I recommend msmtp, unlike ssmtp it is not abandoned by the author and works great

D
dodarium, 2013-08-12
@dodarium

You need to specify the path to ssmtp in the php configuration file in the sendmail_path parameter. To determine the full path, run the "which ssmtp" command (without the quotes).
It will look like this: sendmail_path = /usr/sbin/ssmtp -t -i (your path may be different).

L
la0, 2013-08-13
@la0

And how do you send from the console?

L
lubezniy, 2013-08-13
@lubezniy

In the logs of the web server, mail and secure what?

V
Vladimir, 2016-03-11
@FarCry

www-data:[email protected]: smtp:yandex.ru :465

at least you need smtp.yandex.ru

L
ld23452352343, 2018-08-09
@ld23452352343

try to make two line breaks in the file, write a message on the third then it will work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question