当前时区 GMT+8, 现在时间是 2008-9-7 11:56 游客: 注册 登录 仅登录论坛 | 搜索 帮助
标题: qmail安装时出错
zhongjimax
新手上路
Rank: 1



UID 223309
精华 0
积分 13
帖子 6
阅读权限 10
注册 2006-8-6
状态 离线
发表于 2007-2-16 11:35  资料  短消息  加为好友 
qmail安装时出错

我把编译的步骤列出来吧!
1. mkdir /var/qmail

2. groupadd nofiles
useradd -g nofiles -d /var/qmail/alias alias
useradd -g nofiles -d /var/qmail qmaild
useradd -g nofiles -d /var/qmail qmaill
useradd -g nofiles -d /var/qmail qmailp
groupadd qmail
useradd -g qmail -d /var/qmail qmailq
useradd -g qmail -d /var/qmail qmailr
useradd -g qmail -d /var/qmail qmails

3. make setup check
./load auto-str substdio.a error.a str.a
substdio.a(substdo.o)(.text+0x43): In function `allwrite':
: undefined reference to `errno'
collect2: ld returned 1 exit status
make: *** [auto-str] Error 1
觉得好象有点问题!但又不知道哪里错了!

4./config-fast.sh redhat.com
Your fully qualified host name is redhat.com.
Putting redhat.com into control/me...
./config-fast.sh: line 5: QMAIL/control/me: No such file or directory
chmod: failed to get attributes of `QMAIL/control/me': No such file or directory
Putting redhat.com into control/defaultdomain...
./config-fast.sh: line 11: QMAIL/control/defaultdomain: No such file or directory
chmod: failed to get attributes of `QMAIL/control/defaultdomain': No such file or directory
Putting redhat.com into control/plusdomain...
./config-fast.sh: line 18: QMAIL/control/plusdomain: No such file or directory
chmod: failed to get attributes of `QMAIL/control/plusdomain': No such file or directory
Putting redhat.com into control/locals...
./config-fast.sh: line 23: QMAIL/control/locals: No such file or directory
chmod: failed to get attributes of `QMAIL/control/locals': No such file or directory
Putting redhat.com into control/rcpthosts...
./config-fast.sh: line 27: QMAIL/control/rcpthosts: No such file or directory
chmod: failed to get attributes of `QMAIL/control/rcpthosts': No such file or directory
Now qmail will refuse to accept SMTP messages except to redhat.com.
Make sure to change rcpthosts if you add hosts to locals or virtualdomains!

就是这样的,到这里就这样了.

顶部
一下打死七个
银牌会员
Rank: 6Rank: 6


UID 132711
精华 9
积分 4736
帖子 7334
阅读权限 70
注册 2004-6-11
来自 China
状态 离线
发表于 2007-2-16 16:07  资料  短消息  加为好友 
3.
tar zxvf qmail-1.03.tar.gz
tar zxvf qmail-smtpd-auth-0.31.tar.gz
cp qmail-smtpd-auth-0.31/base64.* qmail-1.03
patch -d qmail-1.03 < qmail-smtpd-auth-0.31/auth.patch
cd qmail-1.03
vi error.h   
        #include <errno.h>   #添加在文件头
make setup check
./config-fast $YOURDOMAIN

cd ~alias
touch .qmail-postmaster .qmail-mailer-daemon .qmail-root
chmod 644 .qmail*

echo '#!/bin/sh' > /var/qmail/rc
echo 'exec env - PATH="/var/qmail/bin:$PATH" \' >> /var/qmail/rc
echo 'qmail-start ./Maildir/ splogger qmail ' >> /var/qmail/rc

chmod 755 /var/qmail/rc

停止sendmail或postfix
/etc/init.d/sendmail stop

如系统已经删除了sendmail,做好如下链接
ln -s /var/qmail/bin/sendmail /usr/lib/sendmail      
ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail





广告时间:http://www.workman.cn 全新改版!
顶部
 


Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
清除 Cookies - 联系我们 - 中国Linux公社 - WAP