W
W
winmasta2017-06-01 08:12:32
symfony
winmasta, 2017-06-01 08:12:32

Swiftmailer not sending non-SU emails?

Good afternoon everyone. Problem with sending emails. If I send from the command line like this

sudo php /var/www/legaltaxi/app/console swiftmailer:email:send --from="[email protected]" --to="[email protected]" --subject="Test" --body="Test"

then the letter leaves, and if from any other user, for example, without sudo, or sudo -u, then an error occurs
[2017-06-01 03:41:03] php.DEBUG: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed {"type":2,"file":"/mnt/var/www/legaltaxi/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php","line":266,"level":4352} []
[2017-06-01 03:41:03] php.DEBUG: stream_socket_client(): Failed to enable crypto {"type":2,"file":"/mnt/var/www/legaltaxi/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php","line":266,"level":4352} []
[2017-06-01 03:41:03] php.DEBUG: stream_socket_client(): unable to connect to ssl://qeep.pro:465 (Unknown error) {"type":2,"file":"/mnt/var/www/legaltaxi/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php","line":266,"level":4352} []

What is the problem ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
winmasta, 2017-06-01
@winmasta

Weird, chmod 755 /etc/ssl/certs did the trick.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question