My FAQ,最新最全的IT技术FAQ
最新100篇 | 推荐100篇 | 专题100篇 | 排行榜 | 搜索 | 在线API文档
首 页 | 程序开发 | 操作系统 | 软件应用 | 图形图象 | 网络应用 | 精文荟萃 | 教育认证 | 未整理篇 | 技术讨论
  当前位置: > 操作系统 > Linux > Linux综合
sendmail配置故障!
作者:未知 时间:2005-09-13 22:15 出处:Blog.ChinaUnix.net 责编:My FAQ
              摘要:sendmail配置故障!

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


 
首页 | 投资与合作 | 服务条款 | 隐私政策 | 收藏本站 | 设为首页 | 新用户注册 | 免责声明 | 使用帮助
Copyright ©2005-2008 myfaq.com.cn All rights reserved. www.myfaq.com.cn 版权所有