第二步 安装vpopmail+qmailadmin,还是把这里的脚本贴一下吧。
#!/bin/sh
# Usage: for install the vpopmail
# ROot to run the script
if [ $UID -ne 0 ]; then
echo "PLZ run as ROOT!"
else
echo "NOW, We will install THE vpopmail!"
#
# Variables
#
INST_PATH=`pwd`/package
SRC_PATH=/usr/local/src
SHELL_PATH=`pwd`/shell
echo "We will install the checkpassword..."
cd $SRC_PATH
tar xzf checkpassword*
cd checkpassword-0.90
patch < $SRC_PATH/netqmail-1.05/other-patches/checkpassword-0.90.errno.patch
make
make setup check
chmod +x /bin/checkpassword
echo "----checkpassword is installed----OK!"
cp $INST_PATH/vpopmail-5.4.17.tar.gz $SRC_PATH
groupadd -g 89 vchkpw
useradd -g vchkpw -u 89 vpopmail
cd $SRC_PATH
tar xzf vpopmail-5.4.17.tar.gz
chown -R root.root vpopmail-5.4.17
cd vpopmail-5.4.17
mkdir ~vpopmail/etc
# THE Mysql setting for vpopmail
echo "Please input the Mysql's infomations!"
echo "Just as follow:"
echo "HOST 0 USERNAME PASSWORD DB_NAME"
read sql_host sql_id sql_user sql_pwd sql_db
echo "$sql_host|$sql_id|$sql_user|$sql_pwd|$sql_db" > ~vpopmail/etc/vpopmail.mysql
chown vpopmail.vchkpw ~vpopmail/etc/vpopmail.mysql
chmod 640 ~vpopmail/etc/vpopmail.mysql
./configure \
--disable-roaming-users \
--enable-logging=p \
--disable-ip-alias-domains \
--disable-passwd \
--enable-clear-passwd \
--disable-domain-quotas \
--enable-auth-module=mysql \
--disable-many-domains \
--enable-auth-logging \
--enable-sql-logging \
--enable-valias \
--disable-mysql-limits
make
make install-strip
echo "PLZ Input your IP SEC"
echo "Just as follow:"
echo "172.19.76."
read IP_SEC
echo "127.0.0.1:allow,RELAYCLIENT=\"\"">>~vpopmail/etc/tcp.smtp
echo "$IP_SEC:allow,RELAYCLIENT=\"\"">>~vpopmail/etc/tcp.smtp
echo "40 * * * * /home/vpopmail/bin/clearopensmtp 2>&1 > /dev/null">>/etc/crontab
echo "Do U want to install pop3d?"
echo "y/n?"
read choicei
if [ "$choicei" = "y" ];then
echo "We will exec the inst_pop3d now!"
$SHELL_PATH/inst_pop3d
else
echo "Stop here, GoodBye"
exit 0;
fi
# Usage: ezmlz install
echo "The ezmlz is installing......"
cp $INST_PATH/ezmlm* $SRC_PATH
cd $SRC_PATH
tar xzf ezmlm*
cd ezmlm-0.53-idx-0.41
make mysql
make man
make setup
echo "----ezmlz is installed-----OK!"
echo "Install the Autorespongd......"
cp $INST_PATH/autores* $SRC_PATH
cd $SRC_PATH
tar xzf autore*
cd autorespond-2.0.5
gcc -Wall -o autorespond autorespond.c
make install
echo "----autorespond is installed----OK!"
echo "Install the qmailadmin......."
cp $INST_PATH/qmailadmin* $SRC_PATH
cd $SRC_PATH
tar xzf qmailadmin*
cd qmailadmin-1.2.9
./configure
make
make install-strip
echo "----qmailadmin is stalled----OK!"
fi
第三步 安装sqwebmail,具体方法参照INSTALL,注意要先安装courier-authlib
PS: 做完了,感触很多,在安装qmail的时候一定要有耐心,还要学会Debug...
qmailctl stat
tail /var/log/qmail/
单独执行 qmail-smtpd/run 等等。
参考:
阅读(1656) | 评论(0) | 转发(0) |