From: Tom Hughes Date: Sun, 6 Oct 2013 17:58:18 +0000 (+0100) Subject: Add mail role X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/4d83b797306b79929737cbd79a59218d4d9c67fe Add mail role --- diff --git a/roles/mail.rb b/roles/mail.rb new file mode 100644 index 000000000..68b465595 --- /dev/null +++ b/roles/mail.rb @@ -0,0 +1,71 @@ +name "mail" +description "Role applied to all mail servers" + +default_attributes( + :exim => { + :local_domains => [ "openstreetmap.org", "osm.org", "noreply.openstreetmap.org" ], + :daemon_smtp_ports => [ 25, 26 ], + :smarthost_name => "mail.openstreetmap.org", + :smarthost_via => false, + :dns_blacklists => [ "sbl-xbl.spamhaus.org" ], + :routes => { + :messages => { + :comment => "messages.openstreetmap.org", + :domains => [ "messages.openstreetmap.org" ], + :host => [ "spike-01.openstreetmap.org", "spike-02.openstreetmap.org", "spike-03.openstreetmap.org" ] + }, + :otrs => { + :comment => "otrs.openstreetmap.org", + :domains => [ "otrs.openstreetmap.org" ], + :host => "ridley.ucl.openstreetmap.org" + }, + :tickets => { + :comment => "tickets.openstreetmap.org", + :domains => [ "tickets.openstreetmap.org" ], + :host => "ridley.ucl.openstreetmap.org" + } + }, + :aliases => { + "abuse" => "root", + "postmaster" => "root", + "webmaster" => "support", + "clamav" => "root", + "rails" => "root", + "trac" => "root", + "munin" => "root", + "thinkup" => "root", + "www-data" => "root", + "osmbackup" => "root", + "noreply" => "/dev/null", + "bounces" => "/dev/null", + "wishlist" => "/dev/null", + "treasurer" => "treasurer@osmfoundation.org", + "donations" => "treasurer@osmfoundation.org", + "secretary" => "secretary@osmfoundation.org", + "chairman" => "chairman@osmfoundation.org", + "accountant" => "accountant@osmfoundation.org", + "data" => "data@otrs.openstreetmap.org", + "otrs" => "otrs@otrs.openstreetmap.org", + "support" => "support@otrs.openstreetmap.org", + "memorial" => "communication@osmfoundation.org", + "legal" => "legal@osmfoundation.org", + "dmca" => "dmca@osmfoundation.org" + }, + :private_aliases => "mail" + }, + :munin => { + :plugins => { + :exim_mailqueue => { + :mails => { + :warning => 500, + :critical => 1000 + } + } + } + } +) + +run_list( + "recipe[clamav]", + "recipe[spamassassin]" +)