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