From c40b0afc7de0fe562b097ba570347032ec10c390 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 29 Nov 2022 20:28:15 +0000 Subject: [PATCH] Use SMTP to send mail from mediawiki --- .../mediawiki/templates/default/LocalSettings.php.erb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb index 8ef611346..e808f06a7 100644 --- a/cookbooks/mediawiki/templates/default/LocalSettings.php.erb +++ b/cookbooks/mediawiki/templates/default/LocalSettings.php.erb @@ -54,6 +54,16 @@ $wgEmailAuthentication = true; $wgEnotifUseJobQ = true; +$wgSMTP = [ + "host" => "localhost", + "localhost" => "<%= node[:fqdn] %>", + "socket_options" => [ + "ssl" => [ + "verify_peer_name" => false + ] + ] +]; + ## Database settings $wgDBtype = "mysql"; $wgDBserver = "<%= @database_params[:host] %>"; -- 2.43.2