qmail安装时出错

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!

就是这样的,到这里就这样了.
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