今天开始配置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这个文件??
郁闷!
继续关注这个问题!