Split sendmail into common and sendmail-specific portions.