]> git.openstreetmap.org Git - chef.git/blob - roles/mail.rb
Avoid overwrite prompts when unzipping
[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       :tickets => {
38         :comment => "tickets.openstreetmap.org",
39         :domains => ["tickets.openstreetmap.org"],
40         :host => "ridley.ucl.openstreetmap.org"
41       },
42       :join => {
43         :comment => "join.osmfoundation.org",
44         :domains => ["join.osmfoundation.org"],
45         :host => "ridley.ucl.openstreetmap.org"
46       }
47     },
48     :aliases => {
49       "abuse" => "root",
50       "postmaster" => "root",
51       "webmaster" => "support",
52       "clamav" => "root",
53       "rails" => "root",
54       "trac" => "root",
55       "munin" => "root",
56       "www-data" => "root",
57       "osmbackup" => "root",
58       "noreply" => "/dev/null",
59       "bounces" => "/dev/null",
60       "wishlist" => "/dev/null",
61       "treasurer" => "treasurer@osmfoundation.org",
62       "donations" => "treasurer@osmfoundation.org",
63       "secretary" => "secretary@osmfoundation.org",
64       "chairman" => "chairman@osmfoundation.org",
65       "accountant" => "accountant@osmfoundation.org",
66       "data" => "data@otrs.openstreetmap.org",
67       "otrs" => "otrs@otrs.openstreetmap.org",
68       "support" => "support@otrs.openstreetmap.org",
69       "memorial" => "communication@osmfoundation.org",
70       "legal" => "legal@osmfoundation.org",
71       "dmca" => "dmca@osmfoundation.org",
72       "program-sotm" => "sotm-program@otrs.openstreetmap.org"
73     },
74     :private_aliases => "mail"
75   },
76   :munin => {
77     :plugins => {
78       :exim_mailqueue => {
79         :mails => {
80           :warning => 500,
81           :critical => 1000
82         }
83       }
84     }
85   }
86 )
87
88 run_list(
89   "recipe[clamav]",
90   "recipe[spamassassin]"
91 )