|
Install virtual domain
# Groupadd VCHKPW
# useradd-g VCHKPW Vpopmail
# mkdir ~vpopmail/etc
# echo "127.0.0.:allow,relayclient=\" \ "" "> ~vpopmail/etc/tcp.smtp
# echo ': Allow ' >/etc/tcp.smtp
#/usr/local/bin/tcprules/etc/tcp.smtp.cdb/etc/tcp.smtp.tmp </ETC/TCP.SMTP
# CD/USR/LOCAL/SRC
# tar XZVF vpopmail-5.2.1.tar.gz
# CD vpopmail-5.2.1
#./configure--enable-roaming-users=y--enable-default-domain=test.com--enable-passwd=n
# make
# Make Install-strip
# crontab–e
* * * * */HOME/VPOPMAIL/BIN/CLEAROPENSMTP 2>&1 >/dev/null
# Cd/home/vpopmail/bin
#./vadddomain test.com Eitop
#./vadduser test@test.com test
# chmod 6755/HOME/VPOPMAIL/BIN/VCHKPW
Install mailing list
# tar XZVF ezmlm-0.53-idx-0.41.tar.gz
# CD ezmlm-0.53-idx-0.41
# make
# Make Mans
# Make Setup
Install the Auto-reply program
# tar ZXVF autorespond.tar.gz
# make (Gcc-wall-o autorespond autorespond.c)
# make install (CP Autorespond/usr/local/bin/autorespond)
Install virtual domain Web mode management
# tar XZVF qmailadmin-1.0.6.tar.gz
# CD qmailadmin-1.0.6
#./configure--enable-htmldir=/www/web1--enable-cgibindir=/usr/local/apache2/cgi-bin
# make
# Make Install-strip
Build qmail startup file
# Vi/etc/rc.d/init.d/qmail
#!/bin/sh
Case "$" in
start)
echo-n "Start qmail:"
/VAR/QMAIL/RC &
echo "."
echo-n "Start SMTP Service:"
/usr/local/bin/tcpserver-h-r-l 0-t 1-c 100-x/etc/tcp.smtp.cdb-u 512-g 505 0 smtp/var/qmail/bin/qmail-smtpd T Est.com/home/vpopmail/bin/vchkpw/bin/true/bin/md5checkpw/bin/true &
echo "."
echo-n "Start POP3 Service:"
/usr/local/bin/tcpserver-l Test.com-u-C 100-h-R 0 Pop3/var/qmail/bin/qmail-popup test.com/home/vpopmail/bin/v Chkpw/var/qmail/bin/qmail-pop3d Maildir &
echo "."
;;
stop)
echo-n "Stop qmail:"
echo "."
;;
*)
Exit 1
;;
Esac
Exit 0
# chmod 755/etc/rc.d/init.d/qmail
#/etc/rc.d/init.d/qmail Start
The user group in the startup file is the Vpopmail user group
If QMail cannot be started, execute Touch/etc/dnsrewrite
|