Talk:Complete Virtual Mail Server/Courier-IMAP and Authentication Services

currently, local_part needs to be unique and thus our setup isn't as perfect as it needs to be ...

e.g. it testuser@testdomain.com and testuser@example.com would both evaluate to the same username, and unless they have the same password, it'll fail.

One option is to use the custom query and add AND domain='%u'

also it might be an idea to authenticate against both local_part OR username (which is the e-mail)