]> git.openstreetmap.org Git - chef.git/blob - roles/mail.rb
tilecache: Add to fast 404 list common off-by-one tiles
[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     },
52     :aliases => {
53       "abuse" => "root",
54       "postmaster" => "root",
55       "webmaster" => "support",
56       "clamav" => "root",
57       "rails" => "root",
58       "trac" => "root",
59       "munin" => "root",
60       "www-data" => "root",
61       "osmbackup" => "root",
62       "noreply" => "/dev/null",
63       "bounces" => "/dev/null",
64       "wishlist" => "/dev/null",
65       "treasurer" => "treasurer@osmfoundation.org",
66       "donations" => "treasurer@osmfoundation.org",
67       "secretary" => "secretary@osmfoundation.org",
68       "chairman" => "chairman@osmfoundation.org",
69       "accountant" => "accountant@osmfoundation.org",
70       "data" => "data@otrs.openstreetmap.org",
71       "otrs" => "otrs@otrs.openstreetmap.org",
72       "support" => "support@otrs.openstreetmap.org",
73       "memorial" => "communication@osmfoundation.org",
74       "legal" => "legal@osmfoundation.org",
75       "dmca" => "dmca@osmfoundation.org",
76       "program-sotm" => "sotm-program@otrs.openstreetmap.org"
77     },
78     :private_aliases => "mail"
79   },
80   :munin => {
81     :plugins => {
82       :exim_mailqueue => {
83         :mails => {
84           :warning => 500,
85           :critical => 1000
86         }
87       }
88     }
89   }
90 )
91
92 run_list(
93   "recipe[clamav]",
94   "recipe[exim]",
95   "recipe[spamassassin]"
96 )