1 "$tool"/local
/apt-get-install dovecot-imapd dovecot-lmtpd dovecot-managesieved dovecot-pop3d dovecot-sieve
2 "$tool"/local
/insserv-remove dovecot
4 hint
="run before: remote/runit-configure $sv"
9 for protocol
in imap pop
11 assert
"sudo test -f /etc/dovecot/$domain/"$protocol"/x509/key.pem" hint
12 sudo
install -m 400 -o root
-g root \
13 "$tool"/var
/pub
/x509
/"$protocol".
"$domain"/crt
+crl.self-signed.pem \
14 /etc
/dovecot
/"$domain"/"$protocol"/x509
/crt
+crl.self-signed.pem
18 hint
="run before: local/runit-configure nginx -- autoconfig"
19 assert
"getent passwd www-autoconfig" hint
20 sudo
install -d -m 750 -o www-autoconfig
-g www-autoconfig \
22 sudo
install -m 640 -o www-autoconfig
-g www-autoconfig \
23 "$tool"/etc
/dovecot
/autoconfig.xml \
24 ~www-autoconfig
/mail
/config-v1.1.xml
26 sudo usermod
--home /home
/mail mail
27 sudo
install -d -m 0751 -o mail -g mail \
30 /etc
/dovecot
/acl
/global.d \
34 /etc
/dovecot
/sieve
/after.d \
35 /etc
/dovecot
/sieve
/before.d \
36 /etc
/dovecot
/sieve
/global.d
38 sudo
install -d -m 3775 -o root
-g root
"$dir"
45 if sudo
test -e "$tool"/etc
/dovecot
/sieve
/"$dir"
47 sudo
find "$tool"/etc
/dovecot
/sieve
/"$dir" \
50 -exec install -m 644 -o root
-g root \
51 -t /etc
/dovecot
/sieve
/"$dir" {} +
53 sudo sievec
/etc
/dovecot
/sieve
/"$dir"
54 sudo
find /etc
/dovecot
/sieve
/"$dir" \
59 #sudo install -d -m 770 -o root -g root \
60 # /etc/skel/etc/mail \
62 sudo
install -d -m 1777 -o root
-g root \
63 /var
/lib
/dovecot-control \
64 /var
/lib
/dovecot-index
66 --define=LOCAL_DOMAINNAME
=$local_domainname \
67 <"$tool"/etc
/dovecot
/dovecot.conf.
m4 |
68 sudo
install -m 644 -o root
-g root
/dev
/stdin \
69 /etc
/dovecot
/dovecot.conf
70 sudo
install -m 640 -o root
-g postfix \
71 "$tool"/etc
/dovecot
/transport \
72 /etc
/dovecot
/transport
73 sudo postmap
hash:/etc
/dovecot
/transport