]> git.openstreetmap.org Git - chef.git/blob - roles/mail.rb
nginx: increase cache filesystem levels
[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     },
73     :private_aliases => "mail"
74   },
75   :munin => {
76     :plugins => {
77       :exim_mailqueue => {
78         :mails => {
79           :warning => 500,
80           :critical => 1000
81         }
82       }
83     }
84   }
85 )
86
87 run_list(
88   "recipe[clamav]",
89   "recipe[spamassassin]"
90 )