[Dovecot] Best way to get login protocol (pop3/imap) in post-login script