#!/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