12 |
subscribe => [ Package['postfix']], |
subscribe => [ Package['postfix']], |
13 |
path => "/etc/init.d/postfix" |
path => "/etc/init.d/postfix" |
14 |
} |
} |
|
} |
|
15 |
|
|
16 |
file { '/etc/postfix/main.cf': |
file { '/etc/postfix/main.cf': |
17 |
ensure => present, |
ensure => present, |
18 |
owner => root, |
owner => root, |
19 |
group => root, |
group => root, |
20 |
mode => 644, |
mode => 644, |
21 |
require => Package["postfix"], |
require => Package["postfix"], |
22 |
content => "", |
content => "", |
23 |
notify => [Service['postfix']] |
notify => [Service['postfix']], |
24 |
} |
} |
25 |
|
} |
26 |
|
|
27 |
|
|
28 |
class simple_relay inherits base { |
class simple_relay inherits base { |
29 |
file { '/etc/postfix/main.cf': |
File['/etc/postfix/main.cf'] { |
30 |
content => template("postfix/simple_relay_main.cf"), |
content => template("postfix/simple_relay_main.cf"), |
31 |
} |
} |
32 |
} |
} |
35 |
include postgrey |
include postgrey |
36 |
include amavis |
include amavis |
37 |
include spamassassin |
include spamassassin |
38 |
file { '/etc/postfix/main.cf': |
File['/etc/postfix/main.cf'] { |
39 |
content => template("postfix/main.cf"), |
content => template("postfix/main.cf"), |
40 |
} |
} |
41 |
|
|