Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
435a99fb
Commit
435a99fb
authored
Nov 11, 2016
by
Marius Burkard
Browse files
- added smtp ssl options for self-signed certs etc.
parent
79a8398a
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/ispcmail.inc.php
View file @
435a99fb
...
...
@@ -602,6 +602,10 @@ class ispcmail {
if
(
$this
->
smtp_crypt
==
'tls'
)
{
fputs
(
$this
->
_smtp_conn
,
'STARTTLS'
.
$this
->
_crlf
);
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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment