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