cleanup postlogin hooks in dovecot so they are uniform and always post-login, closes #1632