+ file { '/etc/dovecot/local.conf':
+ content => @(EOF),
+ mail_location = maildir:~/Maildir
+
+ service imap-login {
+ inet_listener imap {
+ address = 127.0.0.1
+ }
+ }
+
+ service lmtp {
+ unix_listener /var/spool/postfix/private/dovecot-lmtp {
+ group = postfix
+ user = postfix
+ mode = 0660
+ }
+ client_limit = 1
+ }
+
+ | EOF
+ notify => Service['dovecot'],
+ }
+
+ concat::fragment { 'puppet-postfix-main.cf--salsa':
+ target => '/etc/postfix/main.cf',
+ order => '020',
+ content => @("EOF"),
+ recipient_delimiter = +
+
+ mydestination =
+ virtual_transport = lmtp:unix:private/dovecot-lmtp
+ virtual_mailbox_domains = ${salsa::servicename}
+ virtual_alias_maps = hash:/etc/postfix/virtual
+
+ | EOF
+ }
+ exec { '/usr/sbin/postmap /etc/postfix/virtual':
+ refreshonly => true,
+ require => Package['postfix'],
+ }
+ file { '/etc/postfix/virtual':
+ content => @("EOF"),
+ postmaster@${salsa::servicename} postmaster@debian.org
+ admin@${salsa::servicename} salsa-admin@debian.org
+ | EOF
+ notify => Exec['/usr/sbin/postmap /etc/postfix/virtual'],
+ }
+