There's an option in samba to sync samba passwords and normal passwords. The thing is samba stores its passwords in different fields which only exist in the samba schema, and IMAP passwords are stored in the userPassword field.
I'll try it later and if it works next 0.11.100 will come out with that option enabled.