"login_append_domain_if_missing" doesn't work in IMAP-PAM authentication
I've setup a Dovecot server which accept logins from user with or without the domain part, indifferently. Then I've setup Davical to authenticate using Dovecot database.
In order to instruct Davical to interpret all accepted logins as from a specific domain I've enabled both 'domain_name' and 'login_append_domain_if_missing', but didn't worked. Logins from user.name and [email protected] are treated as different accounts.
I've found that in the source code, those options, are enabled only for the HTTP authentication, then I've edited in my installation in '/inc/drivers_imap_pam.php' and I've copied in 'IMAP_PAM_check()' the conditions which appends the domain name I've found in 'CheckPassword()' in /inc/HTTPAuthSession.php.
It worked for me, If this may be an improvement to your software, consider to implement this change for all authentication methods.