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