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"
10 for protocol
in imap pop
12 assert
"sudo test -f /etc/dovecot/$domain/"$protocol"/x509/key.pem" hint
13 sudo
install -m 400 -o root
-g root \
14 "$tool"/var
/pub
/x509
/"$protocol".
"$domain"/crt
+crl.self-signed.pem \
15 /etc
/dovecot
/"$domain"/"$protocol"/x509
/crt
+crl.self-signed.pem
19 hint
="run before: local/runit-configure nginx -- autoconfig"
20 assert
"getent passwd www-autoconfig" hint
21 sudo
install -d -m 750 -o www-autoconfig
-g www-autoconfig \
23 sudo
install -m 640 -o www-autoconfig
-g www-autoconfig \
24 "$tool"/etc
/dovecot
/autoconfig.xml \
25 ~www-autoconfig
/mail
/config-v1.1.xml
27 sudo usermod
--home /home
/mail mail
28 sudo
install -d -m 0751 -o mail -g mail \
31 /etc
/dovecot
/acl
/global.d \
35 /etc
/dovecot
/pop
3/INBOX \
37 /etc
/dovecot
/sieve
/after.d \
38 /etc
/dovecot
/sieve
/before.d \
39 /etc
/dovecot
/sieve
/global.d
41 sudo
install -d -m 3775 -o root
-g root
"$dir"
48 if sudo
test -e "$tool"/etc
/dovecot
/sieve
/"$dir"
50 sudo
find "$tool"/etc
/dovecot
/sieve
/"$dir" \
53 -exec install -m 644 -o root
-g root \
54 -t /etc
/dovecot
/sieve
/"$dir" {} +
56 sudo sievec
/etc
/dovecot
/sieve
/"$dir"
57 sudo
find /etc
/dovecot
/sieve
/"$dir" \
62 #sudo install -d -m 770 -o root -g root \
63 # /etc/skel/etc/mail \
65 sudo
install -d -m 1777 -o root
-g root \
66 /var
/lib
/dovecot-control \
67 /var
/lib
/dovecot-index
69 --define=LOCAL_DOMAINNAME
=$local_domainname \
70 <"$tool"/etc
/dovecot
/dovecot.conf.
m4 |
71 sudo
install -m 644 -o root
-g root
/dev
/stdin \
72 /etc
/dovecot
/dovecot.conf
73 sudo
install -m 640 -o root
-g postfix \
74 "$tool"/etc
/dovecot
/transport \
75 /etc
/dovecot
/transport
76 sudo
install -m 644 -o root
-g root \
77 "$tool"/etc
/dovecot
/pop
3/INBOX
/dovecot-virtual \
78 /etc
/dovecot
/pop
3/INBOX
/dovecot-virtual
79 sudo postmap
hash:/etc
/dovecot
/transport