class mail::dovecot { # Dovecot service { "dovecot": ensure => running, require => [ Package['dovecot-imapd'], File['/etc/dovecot/dovecot.conf', '/etc/dovecot/dovecot-sql.conf'] ], } file { "/etc/dovecot/dovecot.conf": ensure => present, owner => root, group => vmail, mode => 0644, source => "puppet://$server/modules/mail/dovecot/dovecot.conf", notify => Service['dovecot'], } file { "/etc/dovecot/dovecot-sql.conf": ensure => present, owner => root, group => root, mode => 0600, content => template('mail/dovecot/dovecot-sql.conf.erb'), notify => Service['dovecot'], } }