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 assert
"sudo test -f /etc/dovecot/$domain/imap/x509/key.pem" hint
10 sudo
install -m 400 -o root
-g root \
11 "$tool"/var
/pub
/x509
/imap.
"$domain"/crt
+crl.self-signed.pem \
12 /etc
/dovecot
/"$domain"/imap
/x509
/crt
+crl.self-signed.pem
15 hint
="run before: local/runit-configure nginx -- autoconfig"
16 assert
"getent passwd www-autoconfig" hint
17 sudo
install -d -m 750 -o www-autoconfig
-g www-autoconfig \
19 sudo
install -m 640 -o www-autoconfig
-g www-autoconfig \
20 "$tool"/etc
/dovecot
/autoconfig.xml \
21 ~www-autoconfig
/mail
/config-v1.1.xml
23 sudo usermod
--home /home
/mail mail
24 sudo
install -d -m 0751 -o mail -g mail \
27 /etc
/dovecot
/acl
/global.d \
31 /etc
/dovecot
/sieve
/after.d \
32 /etc
/dovecot
/sieve
/before.d \
33 /etc
/dovecot
/sieve
/global.d
35 sudo
install -d -m 3775 -o root
-g root
"$dir"
42 if sudo
test -e "$tool"/etc
/dovecot
/sieve
/"$dir"
44 sudo
find "$tool"/etc
/dovecot
/sieve
/"$dir" \
47 -exec install -m 644 -o root
-g root \
48 -t /etc
/dovecot
/sieve
/"$dir" {} +
50 sudo sievec
/etc
/dovecot
/sieve
/"$dir"
51 sudo
find /etc
/dovecot
/sieve
/"$dir" \
56 #sudo install -d -m 770 -o root -g root \
57 # /etc/skel/etc/mail \
59 sudo
install -d -m 1777 -o root
-g root \
60 /var
/lib
/dovecot-control \
61 /var
/lib
/dovecot-index
63 --define=LOCAL_DOMAINNAME
=$local_domainname \
64 <"$tool"/etc
/dovecot
/dovecot.conf.
m4 |
65 sudo
install -m 644 -o root
-g root
/dev
/stdin \
66 /etc
/dovecot
/dovecot.conf
67 sudo
install -m 640 -o root
-g postfix \
68 "$tool"/etc
/dovecot
/transport \
69 /etc
/dovecot
/transport
70 sudo postmap
hash:/etc
/dovecot
/transport