[Dovecot] postlogin script

Timo Sirainen tss at iki.fi
Thu Dec 8 07:06:12 EET 2011


On Wed, 2011-12-07 at 21:57 +0200, Selcuk Yazar wrote:
> Hi,
> 
> I have Postfix + OpenLdap + DoveCot configuration, and it's running
> succesfuly,
> 
> i wantto convert users pop3 password NTPassword and LMPassword, so i ne
> plain passwor dof users,
> 
> how can i do that. (Normaly using perl's ntlmgen function i convert
> password , but in plain)

1) You need to enable userdb prefetch and make it work:
http://wiki2.dovecot.org/UserDatabase/Prefetch

2) Once you can successfully log in with userdb prefetch enabled, add
another field to pass_attrs:

pass_attrs = ..., =userdb_plaintext_pass=%w

3) Now in your post-login script you should have PLAINTEXT_PASS
environment containing the password.




More information about the dovecot mailing list