170 likes | 405 Views
Email 系统的安装 redhat 9.0. --陈立兵 (jacky@jetmaven.net). 停止和启动相关服务. 1 开启 telnet , ftp , mysql 服务 2 停止 sendmail 及相关的 mail 服务. 安装 ucspi-tcp. #wget wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz # wget http://qmail.cbn.net.id/moni.csi.hu/pub/glibc-2.3.1/ucspi-tcp-0.88.errno.patch
E N D
Email系统的安装redhat 9.0 --陈立兵(jacky@jetmaven.net)
停止和启动相关服务 1 开启telnet,ftp,mysql服务 2 停止sendmail及相关的mail服务
安装ucspi-tcp #wget wget http://cr.yp.to/ucspi-tcp/ucspi-tcp-0.88.tar.gz #wget http://qmail.cbn.net.id/moni.csi.hu/pub/glibc-2.3.1/ucspi-tcp-0.88.errno.patch # tar -xzvf ucspi-tcp-0.88.tar.gz # cd ../ucspi-tcp-0.88 #patch -p1 < ../ucspi-tcp-0.88.errno.patch #make setup check
安装daemontools #wget http://cr.yp.to/daemontools/daemontools-0.76.tar.gz # wget http://qmail.cbn.net.id/moni.csi.hu/pub/glibc-2.3.1/daemontools-0.76.errno.patch #tar -xzvf daemontools-0.76.tar.gz #cd admin/daemontools-0.76/ #patch -p1 < ../../daemontools-0.76.errno.patch #./package/install
安装qmail #wget http://cr.yp.to/software/qmail-1.03.tar.gz #wget http://qmail.cbn.net.id/moni.csi.hu/pub/glibc-2.3.1/qmail-1.03.errno.patch #wget http://www.qmail.org/qmailqueue-patch #wget http://www.qmail.org/qmail-1.03-quotas-1.1.patch #wget http://members.elysium.pl/brush/qmail-smtpd-auth/dist/qmail-smtpd-auth-0.31.tar.gz #wget http://www.shupp.org/patches/qmail-maildir++.patch #wget http://qmail.te8.com/rpms/glibc-2.3.1/qmail-1.03.qmail-local.patch
安装qmail(续) #mkdir /var/qmail # 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
安装qmail(续) #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#patch -p1 < ../qmail-103.patch#patch -p1 < ../qmailqueue-patch#patch -p1 < ..qmail-maildir++.patch#patch -p1 < ..qmail-1.03.errno.patch#patch -p1 < ..qmail-1.03.qmail-local.patch#make setup check #./config-fast yourdomainname #cd /var/qmail/alias # echo master@yourdomainname > .qmail-root # echo master@yourdomainname > .qmail-postmaster # echo master@yourdomainname > .qmail-mailer-daemon
安装qmail(续) #cp /var/qmail/boot/home /var/qmail/rc #修改/var/qmail/rc,内容如下: qmail-start ./Maildir/ #将制作的supervise.tar文件解压至/var/qmail目录 #mkdir -p /var/log/qmail/smtpd #chown qmaill /var/log/qmail /var/log/qmail/smtpd #vi /etc/tcp.smtp //内容如下 127.0.0.1:allow,RELAYCLIENT="" 10.126.10.11:allow,RELAYCLIENT="" :allow #/usr/local/bin/tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp #ln -s /var/qmail/supervise/qmail-send /var/qmail/supervise/qmail-smtpd /service
安装vpopmail #groupadd vchkpw #useradd -m -g vchkpw vpopmail #wget http://www.inter7.com/vpopmail/vpopmail-5.2.1.tar.gz #tar zxvf vpopmail-5.2.1.tar.gz #cd vpopmail-5.2.1 #vi vmysql.h/* =========================== vmysql.h ============================== */#define MYSQL_UPDATE_SERVER "localhost" (mysql服务器名)#define MYSQL_UPDATE_USER “root" (用户名)#define MYSQL_UPDATE_PASSWD "12345678" (改成你设置的密码)#define MYSQL_READ_SERVER "localhost" (mysql服务器名)#define MYSQL_READ_USER “root" (用户名)#define MYSQL_READ_PASSWD "12345678" (改成你设置的密码)/*==================================================================*/
安装vpopmail(续) #./configure --enable-mysql=y --enable-incdir=/usr/include/mysql --enable-libdir=/usr/lib/mysql --enable-default-domain=yourdomainname --enable-defaultquota=52428800 #make # make install-strip # cd /home/vpopmail/bin !!!!!!!!! 进入mysql,建立vpopmail数据库 #./vadddomain yourdomainname #./vadduser master
安装vpopmail(续) #cp /home/vpopmail/bin/vchkpw /bin/ #chmod 4755 /bin/vchkpw #mkdir /var/log/qmail/pop3d #chown qmaill /var/log/qmail/pop3d #ln -s /var/qmail/supervise/qmail-pop3d /service
安装系统控制脚本 #wget http://people.cakraweb.com/~asfik/qmailctl # mv qmailctl /var/qmail/bin/qmailctl # chmod 755 /var/qmail/bin/qmailctl # ln -s /var/qmail/bin/qmailctl /usr/bin #ln -s /var/qmail/bin/qmailctl /etc/rc.d/init.d/qmail #ln -s /etc/rc.d/init.d/qmail/qmail /etc/rc.d/rc0.d/K30qmail #ln -s /etc/rc.d/init.d/qmail/qmail /etc/rc.d/rc1.d/K30qmail #ln -s /etc/rc.d/init.d/qmail/qmail /etc/rc.d/rc2.d/S80qmail #ln -s /etc/rc.d/init.d/qmail/qmail /etc/rc.d/rc3.d/S80qmail #ln -s /etc/rc.d/init.d/qmail/qmail /etc/rc.d/rc4.d/S80qmail #ln -s /etc/rc.d/init.d/qmail/qmail /etc/rc.d/rc5.d/S80qmail #ln -s /etc/rc.d/init.d/qmail/qmail /etc/rc.d/rc6.d/K30qmail
安装courier-imap #wget http://umn.dl.sourceforge.net/sourceforge/courier/courier-imap-1.7.3.tar.bz2 #tar –jxpvf courier-imap-1.7.3.tar.bz2 #cd courier-imap-1.7.3 #./configure --enable-workarounds-for-imap-client-bugs --disable-root-check #make #make install #make install-configure #cp authlib/authvchkpw /usr/lib/courier-imap/libexec/authlib/ # vi /usr/lib/courier-imap/etc/imapd AUTHMODULES="authdaemon“
安装qmailadmin #wget http://cr.yp.to/software/ezmlm-0.53.tar.gz #wget http://gd.tuwien.ac.at/infosys/mail/qmail/ezmlm-patches/ezmlm-idx-0.40.tar.gz #wget http://inter7.com/devel/autorespond-2.0.2.tar.gz #wget http://inter7.com/qmailadmin/qmailadmin-1.0.4.tar.gz #wget http://www.digitaloasys.com/contrib/quotafix-patch.1.0.4-03-LINUX.tar.gz #wget http://qmail.cbn.net.id/moni.csi.hu/pub/glibc-2.3.1/ezmlm-idx-0.53.400.unified_41.patch #tar -xzvf ezmlm-0.53.tar.gz #tar -xzvf ezmlm-idx-0.40.tar.gz #tar -xzvf autorespond-2.0.2.tar.gz #tar -xzvf qmailadmin-1.0.4.tar.gz #tar -xzvf quotafix-patch.1.0.4-03-LINUX.tar.gz #mv ezmlm-idx-0.40/* ezmlm-0.53/ #cd ezmlm-0.53 #patch < idx.patch #patch -p1 < ../ezmlm-idx-0.53.400.unified_41.patch
安装qmailadmin(续) #make #make man #make setup #cd ../autorespond-2.0.2 #make #make install #cd ../qmailadmin-1.0.4 # patch -p1 < ../quotafix-patch/quotafix-patch.diff # ./configure \ --enable-htmldir=/var/www/html \ --enable-cgibindir=/var/www/cgi-bin # make # make install !!!!!! 使用修改后的国际化文件en替换安装的en,同时替换相关网页
安装web控制系统 #wget http://umn.dl.sourceforge.net/sourceforge/jwcgi/jwcgi-1.24.tar.gz #tar zxpvf jwcgi-1.2.4.tar.gz # cd jwcgi-1.2.4 #make lib libinstall #wget http://johnwiggins.net/johnwiggins/code/qmailctl/qmailctl-0.43.tar.gz #tar zxpvf qmailctl-0.43.tar.gz #cd qmailctl-0.43 #make #make install !!!!!!使用国际化,请将翻译后的qmailctl.cpp文件即可 这样你就这样通过web进行mail服务的启动和关闭,详细信息请参考qmailctl的网站说明。
启动您的客户端 最后,登陆到mail服务器上,使用vpopmail的命令添加用户,然后使用您的客户端(Foxmail、Outlook)进行测试吧。