"$tool"/local/apt-get-install dovecot-imapd dovecot-managesieved dovecot-sieve
"$tool"/local/insserv-remove dovecot
-local hint="run before: ./vm_remote runit_configure dovecot"
-assert "sudo test -f /etc/dovecot/\"$vm_domainname\"/imap/x509/key.pem" hint
+
+hint="run before: remote/runit-configure $sv"
+assert 'sudo test -f /etc/dovecot/$local_domainname/imap/x509/key.pem' hint
+
sudo install -m 400 -o root -g root \
- "$tool"/var/pub/x509/imap."$vm_domainname"/crt+crl.self-signed.pem \
- /etc/dovecot/"$vm_domainname"/imap/x509/crt+crl.self-signed.pem
+ "$tool"/var/pub/x509/imap."$local_domainname"/crt+crl.self-signed.pem \
+ /etc/dovecot/"$local_domainname"/imap/x509/crt+crl.self-signed.pem
sudo install -d -m 770 -o root -g root \
/etc/skel/etc/mail \
/etc/skel/etc/sieve
/var/lib/dovecot-control \
/var/lib/dovecot-index
m4 \
- --define=VM_DOMAINNAME=$vm_domainname \
+ --define=LOCAL_DOMAINNAME=$local_domainname \
<"$tool"/etc/dovecot/local.conf.m4 |
sudo install -m 644 -o root -g root /dev/stdin \
/etc/dovecot/local.conf