public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
[Web] Do not verify peer names and allow self-signed certs for relay check
8af05bb4
data/web/inc/ajax/relay_check.php | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
Diff
diff --git a/data/web/inc/ajax/relay_check.php b/data/web/inc/ajax/relay_check.php
index 320f9274..34f8eceb 100644
--- a/data/web/inc/ajax/relay_check.php
+++ b/data/web/inc/ajax/relay_check.php
@@ -24,6 +24,13 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admi
$mail = new PHPMailer;
$mail->Timeout = 10;
+ $mail->SMTPOptions = array(
+ 'ssl' => array(
+ 'verify_peer' => false,
+ 'verify_peer_name' => false,
+ 'allow_self_signed' => true
+ )
+ );
$mail->SMTPDebug = 3;
$mail->Debugoutput = function($str, $level) {
foreach(preg_split("/((\r?\n)|(\r\n?)|\n)/", $str) as $line){
@@ -71,4 +78,4 @@ if (isset($_SESSION['mailcow_cc_role']) && $_SESSION['mailcow_cc_role'] == "admi
}
else {
echo "Permission denied.";
-}
\ No newline at end of file
+}