1 |
misc |
33 |
class postfix { |
2 |
|
|
|
3 |
misc |
34 |
class base { |
4 |
misc |
33 |
package { postfix: |
5 |
|
|
ensure => installed |
6 |
|
|
} |
7 |
misc |
265 |
package { 'nail': |
8 |
dams |
225 |
ensure => installed |
9 |
|
|
} |
10 |
misc |
33 |
service { postfix: |
11 |
|
|
ensure => running, |
12 |
|
|
subscribe => [ Package['postfix']], |
13 |
|
|
path => "/etc/init.d/postfix" |
14 |
|
|
} |
15 |
|
|
} |
16 |
|
|
|
17 |
|
|
file { '/etc/postfix/main.cf': |
18 |
|
|
ensure => present, |
19 |
|
|
owner => root, |
20 |
|
|
group => root, |
21 |
|
|
mode => 644, |
22 |
|
|
require => Package["postfix"], |
23 |
|
|
content => "", |
24 |
|
|
notify => [Service['postfix']] |
25 |
|
|
} |
26 |
|
|
|
27 |
|
|
|
28 |
misc |
34 |
class simple_relay inherits base { |
29 |
misc |
33 |
file { '/etc/postfix/main.cf': |
30 |
misc |
36 |
content => template("postfix/simple_relay_main.cf"), |
31 |
misc |
33 |
} |
32 |
|
|
} |
33 |
misc |
265 |
|
34 |
misc |
285 |
class smtp_server inherits base { |
35 |
|
|
include postgrey |
36 |
|
|
} |
37 |
|
|
|
38 |
|
|
class primary_smtp inherits smtp_server { |
39 |
misc |
265 |
file { '/etc/postfix/main.cf': |
40 |
|
|
content => template("postfix/primary_main.cf"), |
41 |
|
|
} |
42 |
boklm |
272 |
|
43 |
|
|
file { '/etc/postfix/master.cf': |
44 |
|
|
content => template("postfix/primary_master.cf"), |
45 |
|
|
} |
46 |
boklm |
273 |
|
47 |
|
|
file { '/etc/postfix/transport_regexp': |
48 |
|
|
content => template("postfix/primary_transport_regexp"), |
49 |
|
|
} |
50 |
misc |
265 |
} |
51 |
|
|
|
52 |
misc |
285 |
class secondary_smtp inherits smtp_server { |
53 |
misc |
265 |
file { '/etc/postfix/main.cf': |
54 |
|
|
content => template("postfix/secondary_main.cf"), |
55 |
|
|
} |
56 |
|
|
} |
57 |
|
|
|
58 |
misc |
33 |
} |