From: Tom Hughes Date: Tue, 29 Nov 2022 20:28:15 +0000 (+0000) Subject: Use SMTP to send mail from mediawiki X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/c40b0afc7de0fe562b097ba570347032ec10c390?ds=sidebyside Use SMTP to send mail from mediawiki --- 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] %>";