How to install Sendmail server software under Linux
This article introduces the relevant knowledge of "how to install Sendmail server software under Linux". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Download the latest version from www.sendmail.org (this snedmail needs to be upgraded to the latest version, because its upgrade is mainly due to security vulnerabilities). The sendmail-8.12.2.tar.gz is used here.
2 、 cd / usr/local/src/
3. Download the file to: / usr/local/src
4 、 tar zxvf sendmail-8.12.2.tar.gz
5 、 cd / usr/local/src/sendmail-8.12.2
6 、 chmod go-w / / etc/ etc/mail / usr / var/ var/spool/ var/spool/mqueue
7 、 chown root / / etc/ etc/mail / usr / var/ var/spool/ var/spool/mqueue
8 、 cd / usr/local/src/sendmail-8.12.2/sendmail
9 、 sh Build
10 、 cd / usr/local/src/sendmail-8.12.2/cf/cf
11. The contents of the file sendmail.mc are as follows, you can modify the corresponding parts as needed.
Divert (- 1)
Dnl This is the macro config file used to generate the / etc/sendmail.cf
Dnl file. If you modify thei file you will have to regenerate the
Dnl / etc/sendmail.cf by running this macro config through the m4
Dnl preprocessor:
Dnl M4 / etc/sendmail.mc > / etc/sendmail.cf
Dnl You will need to have the Sendmail-cf pacage installed for this to work.
Include (`/ usr/local/src/sendmail-8.12.2/cf')
Define (`confDEF_USER_ID', `8 12')
OSTYPE (`linux')
Undefine (`UUCP_RELAY')
Undefine (`BITNET_RELAY')
Define (`confTO_CONNECT', `1m')
Define (`confTRY_NULL_MX_LIST',true)
Define (`confDONT_PROBE_INTERFACES',true)
Define (`PROCMAIL_MAILER_PATH', `/ usr/bin/procmail')
Define (`SMART_HOST',compaq.rd.xxx.com)