Skip to content

Commit

Permalink
Add SMTP server self-signed certificate verification
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Jan 3, 2024
1 parent 99b4523 commit cd31830
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nextcloud/ns.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,14 @@
'check_for_working_wellknown_setup' => false,
'log_type' => 'errorlog'
);

//verify the SMTP server self-signed certificate
if (getenv('SMTP_TLS_VERIFY') === 'False' || getenv('SMTP_SECURE') === 'none') {
$CONFIG['mail_smtpstreamoptions'] = array(
'ssl' => array(
'allow_self_signed' => true,
'verify_peer' => false,
'verify_peer_name' => false
)
);
}

0 comments on commit cd31830

Please sign in to comment.