]> git.openstreetmap.org Git - chef.git/blob - roles/mail.rb
Version bump cividiscount
[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       "www-data" => "root",
62       "osmbackup" => "root",
63       "noreply" => "/dev/null",
64       "bounces" => "/dev/null",
65       "wishlist" => "/dev/null",
66       "treasurer" => "treasurer@osmfoundation.org",
67       "donations" => "treasurer@osmfoundation.org",
68       "secretary" => "secretary@osmfoundation.org",
69       "chairman" => "chairman@osmfoundation.org",
70       "accountant" => "accountant@osmfoundation.org",
71       "data" => "data@otrs.openstreetmap.org",
72       "otrs" => "otrs@otrs.openstreetmap.org",
73       "support" => "support@otrs.openstreetmap.org",
74       "memorial" => "communication@osmfoundation.org",
75       "legal" => "legal@osmfoundation.org",
76       "dmca" => "dmca@osmfoundation.org",
77       "program-sotm" => "sotm-program@otrs.openstreetmap.org"
78     },
79     :private_aliases => "mail"
80   },
81   :munin => {
82     :plugins => {
83       :exim_mailqueue => {
84         :mails => {
85           :warning => 500,
86           :critical => 1000
87         }
88       }
89     }
90   }
91 )
92
93 run_list(
94   "recipe[clamav]",
95   "recipe[exim]",
96   "recipe[spamassassin]"
97 )