今天開始配置sendmail。
1. 下載最新的sendmail版本。
2. 編譯安裝!
#tar xvfz sendmail.8.13.4.tar.gz
#cd sendmail*
#cd sendmail
#sh Build
這時編譯會生成一個和你的linux系統核心號一樣的一個文件夾。
然后
今天開始配置sendmail。
1. 下載最新的sendmail版本。
2. 編譯安裝!
#tar xvfz sendmail.8.13.4.tar.gz
#cd sendmail*
#cd sendmail
#sh Build
這時編譯會生成一個和你的linux系統核心號一樣的一個文件夾。
然后
#cd /usr/src/sendmail-8.13.4/cf/cf
一般該目錄下應該有config.mc的文件,如果沒有則創建新文件config.mc,內容為:
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 package installed for this to work.
include(`/usr/src/sendmail-8.11.4/cf')
define(`confDEF_USER_ID',`8:12')
OSTYPE(`linux')
undefine(`UUCP_RELAY')
undefine(`BITNET_RELAY')
define(`confAUTO_REBUILD')
define(`confTO_CONNECT', `1m')
define(`confTRY_NULL_MX_LIST',true)
define(`confDONT_PROBE_INTERFACES',true)
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')
FEATURE(`smrsh',`/usr/sbin/smrsh')
FEATURE(`mailertable',`hash -o /etc/mail/mailertable')
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')
FEATURE(redirect)
FEATURE(always_add_domain)
FEATURE(use_cw_file)
FEATURE(local_procmail)
MAILER(smtp)
MAILER(procmail)
FEATURE(`aclearcase/" target="_blank" >ccess_db')
FEATURE(`blacklist_recipients')
dnl We strongly recommend to comment this one out if you want to protect
dnl yourself from spam. However, the laptop and users on computers that do
dnl not hav 24x7 DNS do need this.
FEATURE(`accept_unresolvable_domains')
dnl FEATURE(`relay_based_on_MX')
然后運行
#sh Build config.cf
會生成config.cf文件。
然后開始安裝!
#sh Build install
可是我到這里就出問題了,
在編譯安裝的過程中顯示無法找到cc這個文件??
郁悶!
繼續關注這個問題!