[BlueOnyx:19895] Re: Pear mail.php

Colin Jack colin at mainline.co.uk
Wed Jul 27 13:38:30 -05 2016


Hi Michael,



Like Dudi said: This is a cert validation error. It looks like the Pear

class Mail.php always defaults to using TLS and if the certificate fails

validation, the sending of email fails.



Two ways around that: Get a real certificate (even a "Let's Encrypt"

cert might do).



Ah okay. I have a ‘proper’ certificate on there (wildcard *.mainline.co.uk) but connections are seeing a self-signed cert:



openssl s_client -connect hermes.mainline.co.uk:25 -starttls smtp



I will have to ‘dig’ … looks like the cert isn’t installed correctly.



Or: Disable TLS/SSL in PEAR::Mail.



See https://www.authsmtp.com/php-pear-mail/



That explains an edit somewhere near line 590 where TLS usage can be

turned off.



Always good to have a plan B ;)



Thanks Michael and Dudi.



Colin


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20160727/07c7282e/attachment.html>


More information about the Blueonyx mailing list