From 4497ddaf1081b7e6b96c7159c9c0d7352a8f4f4a Mon Sep 17 00:00:00 2001 From: Arnaud Morin Date: Mon, 2 Jan 2017 18:17:50 +0100 Subject: [PATCH] Make dovecot working --- manifests/dovecot.pp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/manifests/dovecot.pp b/manifests/dovecot.pp index 0d071e0..4aeb59a 100644 --- a/manifests/dovecot.pp +++ b/manifests/dovecot.pp @@ -140,9 +140,17 @@ group => 'root', } + # Make sure that dovecot have access to mails + user { 'dovecot': + groups => 'mail', + require => Package[ $packages_dovecot ], + } - - + # Make sure the /var/mail folder is well configured + file { '/var/mail/': + ensure => directory, + mode => '1777', + } } # vi:smartindent:tabstop=2:shiftwidth=2:expandtab: