Modifications : etc/dovecot/dovecot.conf.m4
[lhc/ateliers.git] / etc / sv / dovecot / local.sh
index 7d11fd2..d38d2bc 100644 (file)
@@ -4,12 +4,19 @@
 hint="run before: remote/runit-configure $sv"
 for domain in \
  "$local_domainname" \
- cyclocoop.org
+ chatperche.org \
+ cyclocoop.org \
+ lesjantesdunord.org \
+ ptitvelo.net \
+ veli-velo.org
  do
-       assert "sudo test -f /etc/dovecot/$domain/imap/x509/key.pem" hint
-       sudo install -m 400 -o root -g root \
-        "$tool"/var/pub/x509/imap."$domain"/crt+crl.self-signed.pem \
-           /etc/dovecot/"$domain"/imap/x509/crt+crl.self-signed.pem
+       for protocol in imap pop
+        do
+               assert "sudo test -f /etc/dovecot/$domain/"$protocol"/x509/key.pem" hint
+               sudo install -m 400 -o root -g root \
+                "$tool"/var/pub/x509/"$protocol"."$domain"/crt+crl.self-signed.pem \
+                   /etc/dovecot/"$domain"/"$protocol"/x509/crt+crl.self-signed.pem
+        done
  done
 
 hint="run before: local/runit-configure nginx -- autoconfig"
@@ -27,6 +34,8 @@ for dir in \
  /etc/dovecot/acl/global.d \
  ~mail/data \
  ~mail/log \
+ /etc/dovecot/pop3 \
+ /etc/dovecot/pop3/INBOX \
  /etc/dovecot/sieve \
  /etc/dovecot/sieve/after.d \
  /etc/dovecot/sieve/before.d \
@@ -67,4 +76,7 @@ sudo install -m 644 -o root -g root /dev/stdin \
 sudo install -m 640 -o root -g postfix \
  "$tool"/etc/dovecot/transport \
         /etc/dovecot/transport
+sudo install -m 644 -o root -g root \
+ "$tool"/etc/dovecot/pop3/INBOX/dovecot-virtual \
+        /etc/dovecot/pop3/INBOX/dovecot-virtual
 sudo postmap hash:/etc/dovecot/transport