2 class salsa::mail inherits salsa {
22 shell => '/bin/false',
26 ensure => 'directory',
32 $pw_salt = hkdf('/etc/puppet/secret', "mail-imap-dovecot-${::hostname}-salsa-${mail_username}-salt-generator")
33 $hashed_pw = pw_hash($salsa::mail_password, 'SHA-512', $pw_salt)
34 file { '/etc/dovecot/users':
38 ${salsa::mail_username}:${hashed_pw}:::
43 file { '/etc/dovecot/conf.d/10-auth.conf':
45 auth_mechanisms = plain
49 args = scheme=CRYPT username_format=%u /etc/dovecot/users
54 args = username_format=%u /etc/dovecot/users
55 default_fields = uid=_vmail gid=_vmail home=/srv/mail/%u
58 notify => Service['dovecot'],