diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-08-06 18:21:23 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-08-06 18:21:23 -0300 |
commit | 713c0e5b7eb306e7f0112b93dec90c13c3df9df5 (patch) | |
tree | 5d5555019a4bda83b75ffbb41a2821ac6b58a151 /manifests/amavisd.pp | |
parent | c783c4c439aa029f669eeff80788149a9dbe67fa (diff) | |
download | puppet-mail-713c0e5b7eb306e7f0112b93dec90c13c3df9df5.tar.gz puppet-mail-713c0e5b7eb306e7f0112b93dec90c13c3df9df5.tar.bz2 |
Dovecot configuration and amavisd-new setup
Diffstat (limited to 'manifests/amavisd.pp')
-rw-r--r-- | manifests/amavisd.pp | 24 |
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' } +} |