The destdir patch allows qmail to build as non-root, without hardcoded IDs, to a staging area. If you’re a packager, or otherwise trying to automate your builds, this patch may be useful to you.
https://schmonz.com/qmail/destdir/
https://schmonz.com/qmail/destdir/