1
0
containers/dovecot/start.sh
2024-12-19 22:32:42 -05:00

11 lines
357 B
Bash
Executable File

#!/bin/sh
# Template out LDAP config
eval "echo \"$(cat /templates/dovecot-ldap.conf.ext.tmpl)\"" > /config/dovecot-ldap.conf.ext
# Symlink the config
ln -s /config/dovecot-ldap.conf.ext /config/dovecot-ldap-users.conf.ext
ln -s /config/dovecot-ldap.conf.ext /config/dovecot-ldap-pass.conf.ext
# Start Dovecot
/usr/sbin/dovecot -c /config/dovecot.conf -F