免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1356 | 回复: 5
打印 上一主题 下一主题

[Mail] 求救postfix安装出错! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-12-15 14:07 |只看该作者 |倒序浏览
我在安装postfix时出错
第一步我先在postfile官方网把源码包下了下来postfix-2.2.7.tar.gz
第二步然后解压tar -zxf postfix-2.2.7.tar.gz
第三步 cd   postfix-2.2.7
第四步 make   然后报错
make -f Makefile.in MAKELEVEL= Makefiles
(echo "# Do not edit -- this file documents how Postfix was built for your machine."; /bin/sh makedefs) >makedefs.tmp
No <db.h> include file found.
Install the appropriate db*-devel package first.
See the RELEASE_NOTES file for more information.
make: *** [Makefiles] Error 1
make: *** [Makefiles] Error 2

论坛徽章:
0
2 [报告]
发表于 2005-12-15 14:10 |只看该作者
以下是抄回来的

  从下面的URL下载Postfix 2.2.5的源代码:http://www.postfix.org
  从下面的URL下载Postfix 2.2.5的VDA补丁程序:http://web.onda.com.br/nadal/
  删除系统自带的Sendmail:
mv /etc/rc.d/init.d/sendmail /etc/rc.d/init.d/sendmail.OFF
mv /usr/sbin/sendmail /usr/sbin/sendmail.OFF
mv /usr/bin/newaliases /usr/bin/newaliases.OFF
mv /usr/bin/mailq /usr/bin/mailq.OFF
chmod 755 /usr/sbin/sendmail.OFF /usr/bin/newaliases.OFF /usr/bin/mailq.OFF
  增加Postfix运行所需要的用户和组,并建立“/home/mail”目录作为存储邮件的地方:
groupadd postfix
groupadd postdrop
useradd postfix -g postfix -c "Postfix user" -d /nonexistent -s /sbin/nologin
mkdir /home/mail
chown postfix:postfix /home/mail
  安装Postfix:
gzip -d postfix-2.2.5-vda.patch.gz
tar zvxf postfix-2.2.5.tar.gz
cd postfix-2.2.5
patch -p1 < ../postfix-2.2.5-vda.patch
make -f Makefile.init makefiles \ OPT='-march=i686 -O2 -fexpensive-optimizations' \
'CCARGS=-DHAS_MYSQL -I/usr/include/mysql -DUSE_SASL_AUTH -I/usr/include/sasl -DUSE_TLS' \
'AUXLIBS=-L/usr/lib -lmysqlclient -lz -lm -L/usr/local/lib -lsasl2 -lssl -lcrypto'
make
make install
  注:“make install”命令后的所有问题都直接敲回车键即可。

论坛徽章:
0
3 [报告]
发表于 2005-12-15 14:18 |只看该作者
谢谢你!!!!!!!!!!!!!!!!!!

论坛徽章:
0
4 [报告]
发表于 2005-12-15 14:26 |只看该作者
不客气。请多点使用google.com。

论坛徽章:
0
5 [报告]
发表于 2005-12-15 14:37 |只看该作者
又出错了。。。。。。。到这一步的时候建不了用户
useradd postfix -g postfix -c "Postfix user" -d /nonexistent -s /sbin/nologin
报错useradd: unknown group postfix

论坛徽章:
0
6 [报告]
发表于 2005-12-15 20:04 |只看该作者
执行了 groupadd postfix 吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP