The code examples in the book are MIT License. It's only that you can't make money from reselling the book *text* itself. You can use all of the knowledge and source code in anything you like, commercial or otherwise.
Sendmail may be safely run set-user-id to root. -- Eric Allman, "Sendmail Installation Guide"