]> git.openstreetmap.org Git - chef.git/blob - roles/mail.rb
Track backport branches of osm2pgsql git on irc
[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       :join => {
39         :comment => "join.osmfoundation.org",
40         :domains => ["join.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       "www-data" => "root",
53       "osmbackup" => "root",
54       "noreply" => "/dev/null",
55       "bounces" => "/dev/null",
56       "wishlist" => "/dev/null",
57       "treasurer" => "treasurer@osmfoundation.org",
58       "donations" => "treasurer@osmfoundation.org",
59       "secretary" => "secretary@osmfoundation.org",
60       "chairman" => "chairman@osmfoundation.org",
61       "accountant" => "accountant@osmfoundation.org",
62       "data" => "data@otrs.openstreetmap.org",
63       "otrs" => "otrs@otrs.openstreetmap.org",
64       "support" => "support@otrs.openstreetmap.org",
65       "memorial" => "communication@osmfoundation.org",
66       "legal" => "legal@osmfoundation.org",
67       "dmca" => "dmca@osmfoundation.org"
68     },
69     :private_aliases => "mail"
70   },
71   :munin => {
72     :plugins => {
73       :exim_mailqueue => {
74         :mails => {
75           :warning => 500,
76           :critical => 1000
77         }
78       }
79     }
80   }
81 )
82
83 run_list(
84   "recipe[clamav]",
85   "recipe[spamassassin]"
86 )