the ebuild is looking for the homedir of vpopmail in or to determine if -userpriv -usersandbox must be set. but vpopmail user it part of the base layout, so this is always true courier-imap ebuild should check if vpopmail is actually installed
Fixed in CVS.