untar cd sendmail-VERSION cd sendmail sh Build cd ../cf/cf cp generic-linux.mc sendmail.mc edit sendmail.mc - add in options sh Build sendmail.cf sh Build install-cf FOR RELAY/GATEWAY SERVER useradd smmsp ; add smmsp group as #25 cd ../../sendmail/ sh Build install ensure: -r-xr-sr-x root smmsp ... /PATH/TO/sendmail drwxrwx--- smmsp smmsp ... /var/spool/clientmqueue drwx------ root wheel ... /var/spool/mqueue -r--r--r-- root wheel ... /etc/mail/sendmail.cf -r--r--r-- root wheel ... /etc/mail/submit.cf FOR SERVER RUNNING PINE sh Build install-set-user-id This is so that PINE can write to /var/spool/mqueue sendmail will look like: -r-sr-xr-x root bin ... /PATH/TO/sendmail Good Sendmail 8.12 .mc file options below... # Comments... # Most features taken from # http://www.linuxjournal.com/article.php?sid=5753 - READ IT! # Put these lines BEFORE the MAILER lines in the generic-*.mc file # Note that on "gateway/relay" mail servers, you can install sendmail # as user:group smmsp:smmsp like the INSTALL and sendmail/SECURITY files # recommend. On servers where PINE will be used, sendmail needs to be # setuid root (i.e. chmod 4555 /usr/sbin/sendmail) so it can write to # /var/spool/mqueue # remove old stuff undefine(`UUCP_RELAY') undefine(`BITNET_RELAY') FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl FEATURE(access_db)dnl MASQUERADE_AS(`domain.net')dnl MASQUERADE_DOMAIN(`.domain.net')dnl EXPOSED_USER(`root')dnl EXPOSED_USER(`postmaster')dnl FEATURE(`masquerade_entire_domain')dnl FEATURE(`masquerade_envelope')dnl # add local host name to incomplete addresses FEATURE(always_add_domain)dnl # look at /etc/mail/local-host-names - was called sendmail.cw FEATURE(use_cw_file)dnl # Stop SPAM FEATURE(`dnsbl') FEATURE(dnsbl,`blackholes.mail-abuse.org',` Mail from $&{client_addr} rejected; see http://mail-abuse.org/cgi-bin/lookup?$& {client_addr}')dnl FEATURE(dnsbl,`relays.mail-abuse.org',` Mail from $&{client_addr} rejected; see http://work-rss.mail-abuse.org/cgi-bin/nph-rss?$& {client_addr}')dnl FEATURE(dnsbl,`dialups.mail-abuse.org',` Mail from dial-up rejected; see http://mail-abuse.org/dul/enduser.htm') FEATURE(dnsbl,`dun.dnsbl.net')dnl FEATURE(dnsbl,`spam.dnsbl.net')dnl