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