]> git.openstreetmap.org Git - chef.git/blob - roles/mail.rb
d4cb3751847ba0c02ca61dc4b724660a8715a823
[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     :smarthost_name => "mail.openstreetmap.org",
20     :smarthost_via => false,
21     :dns_blacklists => ["sbl-xbl.spamhaus.org"],
22     :routes => {
23       :messages => {
24         :comment => "messages.openstreetmap.org",
25         :domains => ["messages.openstreetmap.org"],
26         :host => ["spike-01.openstreetmap.org", "spike-02.openstreetmap.org", "spike-03.openstreetmap.org"]
27       },
28       :otrs => {
29         :comment => "otrs.openstreetmap.org",
30         :domains => ["otrs.openstreetmap.org"],
31         :host => "ridley.ucl.openstreetmap.org"
32       },
33       :tickets => {
34         :comment => "tickets.openstreetmap.org",
35         :domains => ["tickets.openstreetmap.org"],
36         :host => "ridley.ucl.openstreetmap.org"
37       },
38       :crm => {
39         :comment => "crm.osmfoundation.org",
40         :domains => ["crm.osmfoundation.org"],
41         :host => "ridley.ucl.openstreetmap.org"
42       }
43     },
44     :aliases => {
45       "abuse" => "root",
46       "postmaster" => "root",
47       "webmaster" => "support",
48       "clamav" => "root",
49       "rails" => "root",
50       "trac" => "root",
51       "munin" => "root",
52       "thinkup" => "root",
53       "www-data" => "root",
54       "osmbackup" => "root",
55       "noreply" => "/dev/null",
56       "bounces" => "/dev/null",
57       "wishlist" => "/dev/null",
58       "treasurer" => "treasurer@osmfoundation.org",
59       "donations" => "treasurer@osmfoundation.org",
60       "secretary" => "secretary@osmfoundation.org",
61       "chairman" => "chairman@osmfoundation.org",
62       "accountant" => "accountant@osmfoundation.org",
63       "data" => "data@otrs.openstreetmap.org",
64       "otrs" => "otrs@otrs.openstreetmap.org",
65       "support" => "support@otrs.openstreetmap.org",
66       "memorial" => "communication@osmfoundation.org",
67       "legal" => "legal@osmfoundation.org",
68       "dmca" => "dmca@osmfoundation.org"
69     },
70     :private_aliases => "mail"
71   },
72   :munin => {
73     :plugins => {
74       :exim_mailqueue => {
75         :mails => {
76           :warning => 500,
77           :critical => 1000
78         }
79       }
80     }
81   }
82 )
83
84 run_list(
85   "recipe[clamav]",
86   "recipe[spamassassin]"
87 )