I have created a PR here that removes manual creation of users and groups from qmail.eclass and uses acct-* for that. There are already fixed uids and gids for these things, I just put them into ebuilds: https://github.com/gentoo/gentoo/pull/12898