diff --git a/nextcloud/ns.config.php b/nextcloud/ns.config.php index 056c877..f1dce32 100644 --- a/nextcloud/ns.config.php +++ b/nextcloud/ns.config.php @@ -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 + ) + ); +}