]> git.openstreetmap.org Git - chef.git/commitdiff
Use SMTP to send mail from mediawiki
authorTom Hughes <tom@compton.nu>
Tue, 29 Nov 2022 20:28:15 +0000 (20:28 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 29 Nov 2022 20:28:15 +0000 (20:28 +0000)
cookbooks/mediawiki/templates/default/LocalSettings.php.erb

index 8ef611346d35ea0668ba2149eb59635c03e60f98..e808f06a7e83f1c9cad0b9f5ff6ed722c2ebf19d 100644 (file)
@@ -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] %>";