The sendmail source distribution includes quite a bit of documentation. Read it, especially the file cf/README
.
If you are interested to dive deeper into sendmail's configuration options, you want to get the "Bat Book" from O'Reilly: Bryan Costales, Eric Allman, and Neil Rickert: "sendmail". O'Reilly, 1993.