On 05 Jul 2016, at 02:14, Luca Lesinigo luca@lm-net.it wrote:
We’re using dovecot v2.2.22, authenticating on a local database (passdb with sql driver), and then proxying the connections to the backend server returned by passdb (proxy=y and backend in “host” column). To support some legacy clients we should keep POP/IMAP-before-SMTP running for some time, but right know I don’t know how to hook up a successful authentication in the dovecot proxy.
I did read from http://wiki2.dovecot.org/PostLoginScripting: “...it's not currently possible to run post-login scripts in proxies, because they're not actually logging in to the local Dovecot” Does that also holds true even if the proxy is authenticating users locally before proxying them?
Yes. Only when the imap/pop3 process starts the post-login scripting can work.
Failing that, any idea on how to get successful logins, other than parsing the log file?
passdb checkpassword? Or write a plugin.