1. Users login as User, not [EMAIL PROTECTED]
2. Several users login as numbers like 23433 = [EMAIL PROTECTED]
3. Several users logins are very long like john_smith_foobar_com = [EMAIL PROTECTED]
Take a look at vchkpw. That's the portion of vpopmail that authenticates a user, and (I think) returns the path to the maildir.
It might be possible to add an extra table to the database of special username to full email lookups (like 23433 -> [EMAIL PROTECTED] and john_smith_foobar_com -> [EMAIL PROTECTED]). You could modify vchkpw to check that database and then use the actual email address for subsequent lookups.
If you use SquirrelMail or SqWebMail, it might not work (since the web mail program would have the wrong email address).
You might even be able to do something wacky like store the special username in the GECOS ("Real Name" field in QmailAdmin) field of the user record. That would allow for easy management via qmailadmin.
Users would also be able to switch over to the "proper" username/password for their address, allowing you to support the old and new login methods.
Another method, that would be a real pain, would be to create a default domain with all of the special usernames, then create all of the "real" domains and make aliases to the special accounts. E.g., [EMAIL PROTECTED] becomes a forward to [EMAIL PROTECTED]
-- Tom Collins [EMAIL PROTECTED] http://sniffter.com/ - info on the Sniffter hand-held Network Tester