]> git.openstreetmap.org Git - chef.git/blob - roles/mail.rb
tilecache: tweak shorewall ICP UDP rule
[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     },
28     :aliases => {
29       "abuse" => "root",
30       "postmaster" => "root",
31       "webmaster" => "support",
32       "clamav" => "root",
33       "rails" => "root",
34       "trac" => "root",
35       "munin" => "root",
36       "thinkup" => "root",
37       "www-data" => "root",
38       "osmbackup" => "root",
39       "noreply" => "/dev/null",
40       "bounces" => "/dev/null",
41       "wishlist" => "/dev/null",
42       "treasurer" => "treasurer@osmfoundation.org",
43       "donations" => "treasurer@osmfoundation.org",
44       "secretary" => "secretary@osmfoundation.org",
45       "chairman" => "chairman@osmfoundation.org",
46       "accountant" => "accountant@osmfoundation.org",
47       "data" => "data@otrs.openstreetmap.org",
48       "otrs" => "otrs@otrs.openstreetmap.org",
49       "support" => "support@otrs.openstreetmap.org",
50       "memorial" => "communication@osmfoundation.org",
51       "legal" => "legal@osmfoundation.org",
52       "dmca" => "dmca@osmfoundation.org"
53     },
54     :private_aliases => "mail"
55   },
56   :munin => {
57     :plugins => {
58       :exim_mailqueue => {
59         :mails => { 
60           :warning => 500,
61           :critical => 1000
62         }
63       }
64     }
65   }
66 )
67
68 run_list(
69   "recipe[clamav]",
70   "recipe[spamassassin]"
71 )