]> git.openstreetmap.org Git - chef.git/blob - roles/mail.rb
Fix noreply body lookup
[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 => 25,
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       :community => {
51         :comment => "community.openstreetmap.org",
52         :domains => ["community.openstreetmap.org"],
53         :host => "lockheed.ams.openstreetmap.org::2500"
54       }
55     },
56     :dkim_selectors => {
57       "openstreetmap.org" => "20200301",
58       "osmfoundation.org" => "20201112"
59     },
60     :aliases => {
61       "abuse" => "root",
62       "postmaster" => "root",
63       "webmaster" => "support",
64       "clamav" => "root",
65       "rails" => "root",
66       "trac" => "root",
67       "munin" => "root",
68       "prometheus" => "root",
69       "www-data" => "root",
70       "osmbackup" => "root",
71       "noreply" => "/dev/null",
72       "bounces" => "/dev/null",
73       "wishlist" => "/dev/null",
74       "treasurer" => "treasurer@osmfoundation.org",
75       "donations" => "treasurer@osmfoundation.org",
76       "secretary" => "secretary@osmfoundation.org",
77       "chairman" => "chairman@osmfoundation.org",
78       "accountant" => "accountant@osmfoundation.org",
79       "data" => "data@otrs.openstreetmap.org",
80       "otrs" => "otrs@otrs.openstreetmap.org",
81       "support" => "support@otrs.openstreetmap.org",
82       "memorial" => "communication@osmfoundation.org",
83       "legal" => "legal@osmfoundation.org",
84       "dmca" => "dmca@osmfoundation.org",
85       "program-sotm" => "sotm-program@otrs.openstreetmap.org"
86     },
87     :private_aliases => "mail"
88   },
89   :munin => {
90     :plugins => {
91       :exim_mailqueue => {
92         :mails => {
93           :warning => 500,
94           :critical => 1000
95         }
96       }
97     }
98   },
99   :prometheus => {
100     :metrics => {
101       :exim_queue_limit => { :metric => 250 }
102     }
103   }
104 )
105
106 run_list(
107   "recipe[clamav]",
108   "recipe[exim]",
109   "recipe[spamassassin]"
110 )