All the work was done by Vladimir Berezniker (vladimir@berezniker.com). I am just entering this bug report on his behalf. vpopmail 5.2.1 has a bug where the login string is null-terminated in the wrong location causing login failure in a lot of cases. The problem was narrowed down to the parse_email function and looking through the changelog for newer (development) versions of vpopmail, you can see that this bug was already fixed in later versions. Instead of recreating the patch, Vladimir simply backported the parse_email function from the latest development version to 5.2.1 Now all the logins on our system work properly. Attached is the diff for the ebuild and diff to vpopmail. (the diff would have to be given an appropriate name and referenced properly in the ebuil)
Created attachment 2670 [details, diff] ebuild patch This patch should be applied to vpopmail-5.2.1-r2.ebuild
Created attachment 2671 [details, diff] vpopmail diff This patch should be placed in the files/ directory for vpopmail package. The ebuild should be corrected to reference whatever name this file gets.
The patch and fixed ebuild are now in portage. Thanks for the patches!
My brother is gonna be pissed. The credit was supposed to go to him :-P Now he's gonna kill me.