>> Also, I need a detailed procedure to recompile sendmail.cf
Actually, the tarball has a set of README's that span the matter (you need <sendmail_pkg>/cf/README), so I just clarify some aspect that are not reflected there (maybe because Allman thinks it's trivial)
- when you specify some value in statements like DOMAIN, OSTYPE or FEATURE..., the file with the same name must be present in <sendmail_pkg>/cf/[ostype,domain,feature...]
- you can create file with any name (e.g. <sendmail_pkg>/cf/cf/my_custom_config.mc), then create the config file with
cd <sendmail_pkg>/cf/cf
./Build my_custom_config.cf
(make sure to rename it to sendmail.cf if everything goes Ok)
- make sure the values of external programs' filenames set in statements like SOME_MAILER_PATH and SOME_MAILER_ARGS or confEBINDIR reflect the actual location of the programs (e.g. if you install newre version of something in /usr/local/bin/program while default setting reads /usr/bin/program)
- when rebuilding binaries, use commands like this
cd <sendmail_pkg>/sendmail
./Build -c -f ../devtools/Site/file_with_my_settings.m4
(I do not know why, but specifying full pathname from / did not work while ../ helped), run them in the source subdirectory of every program from the sendmail package you decide to install (e.g. I used mail.local for it's simplicity instead of procmail), file_with_my_settings.m4 must contain settings for all those programs.