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