Can you post auth_debug=yes logs? Aki
> On 23/01/2025 13:26 EET Arkadiusz Miśkiewicz via dovecot > <dovecot@dovecot.org> wrote: > > > Hello. > > > Trying to pass reason response via lua by passing it at > dovecot.auth.PASSDB_RESULT_USER_DISABLED like: > > > function auth_password_verify(request, password) > return dovecot.auth.PASSDB_RESULT_USER_DISABLED, "reason=custom_message" > > end > > function auth_userdb_lookup(request) > return dovecot.auth.PASSDB_RESULT_OK, "uid=428671 gid=9726 > home=/var/mail/existusertest" > > end > > function script_init() > return 0 > end > > function script_deinit() > end > > > Unfortunately returned result contains no custom message and also > returns AUTHENTICATIONFAILED instead of CONTACTADMIN: > > NO [AUTHENTICATIONFAILED] Authentication failed. > > while I would expect something like: > > NO [CONTACTADMIN] custom_message: > > Any reason for such behaviour and how to get reason passed and proper > CONTACTADMIN? > > Tests done on 2.3.21.1. > > passdb { > driver = lua > mechanisms = login plain > args = file=/etc/dovecot/lua_auth_script_test_fail.lua blocking=yes > } > > > userdb { > driver = lua > args = file=/etc/dovecot/lua_auth_script_test_fail.lua blocking=yes > } > > -- > Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org ) > > _______________________________________________ > dovecot mailing list -- dovecot@dovecot.org > To unsubscribe send an email to dovecot-le...@dovecot.org _______________________________________________ dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-le...@dovecot.org