Curiously, what happens when you specify this:
auth_username_format=%n passdb passwd-file { args = username_format=%u /etc/imap.passwd }
In my attempt to implement something like this, I didn't find any straightforward way to have "username_format=%u" use the original username, only the auth_username_format.
auth_username_format changes the username permanently and the original username isn't found from anywhere anymore.
Okay, that's what I thought.
I removed the special casing of %d from v1.1.
I think this is the best long-term move. I would've been concerned about making the 1.0 -> 1.1 migration path more difficult. But since I haven't gone to dovecot at all yet, it sounds like a good idea to me :)
Thanks again, Alan Ferrency pair Networks, Inc. alan@pair.com