summaryrefslogtreecommitdiff
path: root/manifests/amavisd.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/amavisd.pp')
-rw-r--r--manifests/amavisd.pp24
1 files changed, 24 insertions, 0 deletions
diff --git a/manifests/amavisd.pp b/manifests/amavisd.pp
new file mode 100644
index 0000000..1047fb0
--- /dev/null
+++ b/manifests/amavisd.pp
@@ -0,0 +1,24 @@
+class mail::amavisd {
+ # TODO: master.cf
+
+ service { "amavisd":
+ ensure => running,
+ require => Package['amavisd-new'],
+ }
+
+ service { "freshclam":
+ ensure => running,
+ require => Package['clamav-freshclam'],
+ }
+
+ file { "/etc/amavis/conf.d/15-content_filter_mode":
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => 0644,
+ source => "puppet://$server/modules/mail/amavisd/15-content_filter_mode",
+ notify => Service['amavisd'],
+ }
+
+ postfix::config { "content_filter": value => 'amavis:[127.0.0.1]:10024' }
+}