]> git.openstreetmap.org Git - chef.git/blob - roles/mail.rb
Increase WAL sender limit for main database
[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     :queue_run_max => 5,
30     :smtp_accept_max => 200,
31     :smarthost_name => "mail.openstreetmap.org",
32     :smarthost_via => false,
33     :dns_blacklists => ["zen.spamhaus.org"],
34     :routes => {
35       :messages => {
36         :comment => "messages.openstreetmap.org",
37         :domains => ["messages.openstreetmap.org"],
38         :host => ["spike-06.openstreetmap.org", "spike-07.openstreetmap.org", "spike-08.openstreetmap.org"]
39       },
40       :otrs => {
41         :comment => "otrs.openstreetmap.org",
42         :domains => ["otrs.openstreetmap.org"],
43         :host => "ridley.ucl.openstreetmap.org"
44       },
45       :join => {
46         :comment => "join.osmfoundation.org",
47         :domains => ["join.osmfoundation.org"],
48         :host => "ridley.ucl.openstreetmap.org"
49       }
50     },
51     :dkim_selectors => {
52       "openstreetmap.org" => "20200301",
53       "osmfoundation.org" => "20201112"
54     },
55     :aliases => {
56       "abuse" => "root",
57       "postmaster" => "root",
58       "webmaster" => "support",
59       "clamav" => "root",
60       "rails" => "root",
61       "trac" => "root",
62       "munin" => "root",
63       "prometheus" => "root",
64       "www-data" => "root",
65       "osmbackup" => "root",
66       "noreply" => "/dev/null",
67       "bounces" => "/dev/null",
68       "wishlist" => "/dev/null",
69       "treasurer" => "treasurer@osmfoundation.org",
70       "donations" => "treasurer@osmfoundation.org",
71       "secretary" => "secretary@osmfoundation.org",
72       "chairman" => "chairman@osmfoundation.org",
73       "accountant" => "accountant@osmfoundation.org",
74       "data" => "data@otrs.openstreetmap.org",
75       "otrs" => "otrs@otrs.openstreetmap.org",
76       "support" => "support@otrs.openstreetmap.org",
77       "memorial" => "communication@osmfoundation.org",
78       "legal" => "legal@osmfoundation.org",
79       "dmca" => "dmca@osmfoundation.org",
80       "program-sotm" => "sotm-program@otrs.openstreetmap.org"
81     },
82     :private_aliases => "mail"
83   },
84   :munin => {
85     :plugins => {
86       :exim_mailqueue => {
87         :mails => {
88           :warning => 500,
89           :critical => 1000
90         }
91       }
92     }
93   }
94 )
95
96 run_list(
97   "recipe[clamav]",
98   "recipe[exim]",
99   "recipe[spamassassin]"
100 )