Skip to content
Snippets Groups Projects
Commit 435a99fb authored by Marius Burkard's avatar Marius Burkard
Browse files

- added smtp ssl options for self-signed certs etc.

parent 79a8398a
No related branches found
No related tags found
No related merge requests found
...@@ -602,6 +602,10 @@ class ispcmail { ...@@ -602,6 +602,10 @@ class ispcmail {
if($this->smtp_crypt == 'tls') { if($this->smtp_crypt == 'tls') {
fputs($this->_smtp_conn, 'STARTTLS' . $this->_crlf); fputs($this->_smtp_conn, 'STARTTLS' . $this->_crlf);
fgets($this->_smtp_conn, 515); fgets($this->_smtp_conn, 515);
stream_context_set_option($this->_smtp_conn, 'ssl', 'verify_host', false);
stream_context_set_option($this->_smtp_conn, 'ssl', 'verify_peer', false);
stream_context_set_option($this->_smtp_conn, 'ssl', 'allow_self_signed', true);
stream_socket_enable_crypto($this->_smtp_conn, true, STREAM_CRYPTO_METHOD_TLS_CLIENT); stream_socket_enable_crypto($this->_smtp_conn, true, STREAM_CRYPTO_METHOD_TLS_CLIENT);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment