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