1
0
Fork 0
cacert-devsetup/docker/run-dovecot
2020-12-26 17:10:15 +01:00

12 lines
291 B
Bash
Executable file

#!/bin/sh
set -eu
echo "catchall:{plain}${CATCHALL_MAILBOX_PASSWORD}::::::" \
> /etc/dovecot/imap_user.txt
chmod 0640 /etc/dovecot/imap_user.txt
chown dovecot.dovecot /etc/dovecot/imap_user.txt
echo "log_path = /dev/stderr" > /etc/dovecot/local.conf
trap "exit 0" TERM INT
dovecot -F