I currently use the standard mysql authentication. Users names and passwords are extracted from the horde_users table by dovecot. But if there isn't other way I'll try with custom queries.