]> git.openstreetmap.org Git - chef.git/blob - roles/mail.rb
8df80ee50a0b38b086fd63d206751a6faff812c9
[chef.git] / roles / mail.rb
1 name "mail"
2 description "Role applied to all mail servers"
3
4 default_attributes(
5   :exim => {
6     :local_domains => [
7       "openstreetmap.org",
8       "osm.org",
9       "noreply.openstreetmap.org",
10       "openstreetmap.co.uk",
11       "openstreetmap.org.uk",
12       "openstreetmap.com",
13       "openstreetmap.io",
14       "openstreetmap.pro",
15       "openstreetmaps.org",
16       "osm.io"
17     ],
18     :daemon_smtp_ports => [25, 26],
19     :certificate_names => [
20       "mail.openstreetmap.org",
21       "a.mx.openstreetmap.org"
22     ],
23     :smarthost_name => "mail.openstreetmap.org",
24     :smarthost_via => false,
25     :dns_blacklists => ["zen.spamhaus.org"],
26     :routes => {
27       :messages => {
28         :comment => "messages.openstreetmap.org",
29         :domains => ["messages.openstreetmap.org"],
30         :host => ["spike-06.openstreetmap.org", "spike-07.openstreetmap.org", "spike-08.openstreetmap.org"]
31       },
32       :otrs => {
33         :comment => "otrs.openstreetmap.org",
34         :domains => ["otrs.openstreetmap.org"],
35         :host => "ridley.ucl.openstreetmap.org"
36       },
37       :join => {
38         :comment => "join.osmfoundation.org",
39         :domains => ["join.osmfoundation.org"],
40         :host => "ridley.ucl.openstreetmap.org"
41       }
42     },
43     :aliases => {
44       "abuse" => "root",
45       "postmaster" => "root",
46       "webmaster" => "support",
47       "clamav" => "root",
48       "rails" => "root",
49       "trac" => "root",
50       "munin" => "root",
51       "www-data" => "root",
52       "osmbackup" => "root",
53       "noreply" => "/dev/null",
54       "bounces" => "/dev/null",
55       "wishlist" => "/dev/null",
56       "treasurer" => "treasurer@osmfoundation.org",
57       "donations" => "treasurer@osmfoundation.org",
58       "secretary" => "secretary@osmfoundation.org",
59       "chairman" => "chairman@osmfoundation.org",
60       "accountant" => "accountant@osmfoundation.org",
61       "data" => "data@otrs.openstreetmap.org",
62       "otrs" => "otrs@otrs.openstreetmap.org",
63       "support" => "support@otrs.openstreetmap.org",
64       "memorial" => "communication@osmfoundation.org",
65       "legal" => "legal@osmfoundation.org",
66       "dmca" => "dmca@osmfoundation.org",
67       "program-sotm" => "sotm-program@otrs.openstreetmap.org"
68     },
69     :private_aliases => "mail"
70   },
71   :munin => {
72     :plugins => {
73       :exim_mailqueue => {
74         :mails => {
75           :warning => 500,
76           :critical => 1000
77         }
78       }
79     }
80   }
81 )
82
83 run_list(
84   "recipe[clamav]",
85   "recipe[spamassassin]"
86 )