P
P
Pavel K2016-10-05 14:19:33
PHP
Pavel K, 2016-10-05 14:19:33

How to make php7-fpm from chroot send emails via smtp with ssl?

Greetings!
Raised dovecot + postfix and nginx + php7-fpm under chroot
, mail comes and goes
php sites work
but I can’t get php to send through this smtp server with authorization, when I try
to mail.log


SSL_accept error from localhost[127.0.0.1]: 0
warning: TLS library problem: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c:1263:SSL alert number 48:
lost connection after CONNECT from localhost[127.0 .0.1]

I tried to do the same, it gave an error about certificates, copied it to chroot /usr/share/ca-certificates , the problem was gone, but the problem with mailings remained . Where to dig further?
file_get_contents("HTTPS://google.com");

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question