Problem with mod_auth_imap

Hello, I would like to use the mod_auth_imap module at prosody. I tried this:

authentication = “imap”
imap_auth_host = “my.mailserver.tld”
imap_auth_port = “143”
imap_auth_realm = “mydomain.tld”

But I get errors like:
sasl_imap error error initializing ssl connection to imap at ‘my.mailserver.tld":143’: wrong version number
modulemanager error Error initializing module ‘auth_imap’ on ‘meeting.mydomain.tld’: /usr/lib/prosody/modules/mod_auth_imap/mod_auth_imap.lua:37: Could not create a new SASL object
stack traceback:
[C]: in function ‘assert’
/usr/lib/prosody/modules/mod_auth_imap/mod_auth_imap.lua:37: in main chunk
[C]: in function ‘xpcall’
/usr/lib/prosody/core/modulemanager.lua:178: in function ‘do_load_module’
/usr/lib/prosody/core/modulemanager.lua:256: in function ‘load’
/usr/lib/prosody/core/usermanager.lua:67: in function ‘?’
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/core/hostmanager.lua:108: in function ‘activate’
/usr/lib/prosody/core/hostmanager.lua:58: in function ‘?’
/usr/lib/prosody/util/events.lua:79: in function </usr/lib/prosody/util/events.lua:75>
(…tail calls…)
/usr/lib/prosody/util/startup.lua:330: in function ‘prepare_to_start’
/usr/lib/prosody/util/startup.lua:551: in function ‘f’
/usr/lib/prosody/util/async.lua:139: in function ‘func’
/usr/lib/prosody/util/async.lua:127: in function </usr/lib/prosody/util/async.lua:125>

The imap server knows StartTLS and imaps but I don’t know the configuration parameters and the documentation of the module is unfortunately not helpful to me.

The authentication with authentication = “internal_hashed” works.

Can someone help me?

I’m not familiar with that auth module, but perhaps you could try asking on the Prosody forums too.