]> git.openstreetmap.org Git - chef.git/blob - roles/mail.rb
Only uses push events on master to update the badges
[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       "a.mx.osm.org",
23       "a.mx.openstreetmap.com",
24       "a.mx.openstreetmap.io",
25       "a.mx.openstreetmap.pro",
26       "a.mx.openstreetmaps.org",
27       "a.mx.osm.io"
28     ],
29     :smarthost_name => "mail.openstreetmap.org",
30     :smarthost_via => false,
31     :dns_blacklists => ["zen.spamhaus.org"],
32     :routes => {
33       :messages => {
34         :comment => "messages.openstreetmap.org",
35         :domains => ["messages.openstreetmap.org"],
36         :host => ["spike-06.openstreetmap.org", "spike-07.openstreetmap.org", "spike-08.openstreetmap.org"]
37       },
38       :otrs => {
39         :comment => "otrs.openstreetmap.org",
40         :domains => ["otrs.openstreetmap.org"],
41         :host => "ridley.ucl.openstreetmap.org"
42       },
43       :join => {
44         :comment => "join.osmfoundation.org",
45         :domains => ["join.osmfoundation.org"],
46         :host => "ridley.ucl.openstreetmap.org"
47       }
48     },
49     :aliases => {
50       "abuse" => "root",
51       "postmaster" => "root",
52       "webmaster" => "support",
53       "clamav" => "root",
54       "rails" => "root",
55       "trac" => "root",
56       "munin" => "root",
57       "www-data" => "root",
58       "osmbackup" => "root",
59       "noreply" => "/dev/null",
60       "bounces" => "/dev/null",
61       "wishlist" => "/dev/null",
62       "treasurer" => "treasurer@osmfoundation.org",
63       "donations" => "treasurer@osmfoundation.org",
64       "secretary" => "secretary@osmfoundation.org",
65       "chairman" => "chairman@osmfoundation.org",
66       "accountant" => "accountant@osmfoundation.org",
67       "data" => "data@otrs.openstreetmap.org",
68       "otrs" => "otrs@otrs.openstreetmap.org",
69       "support" => "support@otrs.openstreetmap.org",
70       "memorial" => "communication@osmfoundation.org",
71       "legal" => "legal@osmfoundation.org",
72       "dmca" => "dmca@osmfoundation.org",
73       "program-sotm" => "sotm-program@otrs.openstreetmap.org"
74     },
75     :private_aliases => "mail"
76   },
77   :munin => {
78     :plugins => {
79       :exim_mailqueue => {
80         :mails => {
81           :warning => 500,
82           :critical => 1000
83         }
84       }
85     }
86   }
87 )
88
89 run_list(
90   "recipe[clamav]",
91   "recipe[spamassassin]"
92 )