Redhat 7.2下qmail安装
OS:RedHat 7.2、7.1(FreeBSD、Solaris平台下还未测试) <br>所须软件: <br>
qmail-1.03.tar.gz <br>
qmail-smtpd-auth-0.30.tar.gz <br>
ucspi-tcp-0.88.tar.gz <br>
checkpassword-0.90.tar.gz <br>
daemontools-0.70.tar.gz <br>
vpopmail-4.9.10.tar.gz <br>
ezmlm-0.53.tar.gz <br>
autorespond-1.0.0.tar.gz <br>
qmailadmin-0.45.tar.gz <br>
sqwebmail-2.1.1.tar.gz <br>
vqsignup-0.5.tar.gz <br>
<br>
1 #mkdir /var/qmail <br>
<br>
2 设定组、用户权限 <br>
#/usr/sbin/groupadd nofiles <br>
#/usr/sbin/useradd –g nofiles –d /var/qmail/alias alias <br>
#/usr/sbin/useradd –g nofiles –d /var/qmail qmaild <br>
#/usr/sbin/useradd –g nofiles –d /var/qmail qmaill <br>
#/usr/sbin/useradd –g nofiles –d /var/qmail qmailp <br>
#/usr/sbin/groupadd qmail <br>
#/usr/sbin/useradd –g qmail –d /var/qmail qmailq <br>
#/usr/sbin/useradd –g qmail –d /var/qmail qmailr <br>
#/usr/sbin/useradd –g qmail –d /var/qmail qmails <br>
<br>
3 安装Qmail-1.03(带smtp认证) <br>
#tar zxvf qmail-1.03.tar.gz <br>
#tar zxvf qmail-smtpd-auth-0.30.tar.gz <br>
#cd qmail-smtp-auth-0.30 <br>
#cp base64.c base64.h README.auth ../qmail-1.03/ <br>
#patch -d ../qmail-1.03 < auth.patch <br>
#cd qmail-1.03 <br>
#make setup check <br>
#./config-fast mail.domain.com <br>
<br>
4 建立系统别名 <br>
#cd ~alias; touch .qmail-postmaster .qmail-mailer-daemon .qmail-root <br>
#chmod 644 ~alias/.qmail* <br>
<br>
5 <br>
#cp /var/qmail/boot/home /var/qmail/rc <br>
#chmod 755 /var/qmail/rc <br>
#vi /var/qmail/rc <br>
修改其中./Mailbox为./Maildir,修改后的如下: <br>
<br>
#!/bin/sh <br>
# Using splogger to send the log through syslog. <br>
# Using qmail-local to deliver messages to ~/Maildir by default. <br>
exec env - PATH="/var/qmail/bin:$PATH" <br>
qmail-start ./Maildir splogger qmail <br>
<br>
建立样本: <br>
#mkdir /etc/skel <br>
#/var/qmail/bin/maildirmake /etc/skel/Maildir <br>
#echo ./Maildir/ > ~/.qmail <br>
<br>
6 安装 ucspi-tcp-0.88 <br>
#tar zxvf ucspi-tcp-0.88.tar.gz <br>
#cd ucspi-tcp-0.88 <br>
#make <br>
#make setup check <br>
<br>
7 安装checkpassword-0.90和cmd5checkpw-0.22.tar.gz <br>
#tar zxvf checkpassword-0.90.tar.gz <br>
#cd checkpassword-0.90 <br>
#make <br>
#make setup check <br>
#chmod 4755 /bin/checkpassword <br>
<br>
#tar zxvf cmd5checkpw-0.22.tar.gz <br>
#mkdir /usr/man <br>
#mkdir /usr/man/man8 <br>
#cd cmd5checkpw-0.22 <br>
#make <br>
#make install <br>
<br>
如果不对/etc/passwd中的用户开放mail,就不需要安装checkpassword,只要安装vpopmail就可以了。 <br>
<br>
8 安装 daemontools-0.70 <br>
#tar zxvf daemontools-0.70.tar.gz <br>
#cd daemontools-0.70 <br>
<br>
(注:在RedHat 7.1、7.2下需要修改tai64nlocal.c <br>
# vi tai64nlocal.c <br>
将#include <sys/time.h>更改为:#include <time.h>) <br>
<br>
#make <br>
#make setup check <br>
<br>
#mkdir /var/run/qmail <br>
<br>
9 安装 vpopmail-4.9.10 <br>
#/usr/sbin/groupadd vchkpw <br>
#/usr/sbin/useradd –g vchkpw vpopmail <br>
#mkdir ~vpopmail/etc <br>
#echo “:allow” > ~vpopmail/etc/tcp.smtp <br>
#tar zxvf vpopmail-4.9.10.tar.gz <br>
#cd vpopmail-4.9.10 <br>
#./configure --enable-logging=v <br>
--enable-roaming-users=y <br>
--enable-sqwebmail-pass=n <br>
--enable-passwd=n <br>
--enable-default-domain=mail.domain.com <br>
<br>
#make <br>
#make install-strip <br>
<br>
#chmod 6755 /home/vpopmail/bin/vchkpw <br>
<br>
#crontab –e <br>
40 * * * * /home/vpopmail/bin/clearopensmtp 2>&1 > /dev/null <br>
<br>
添加域名: <br>
#cd /home/vpopmail/bin <br>
#./vadddomain domain.com password <br>
<br>
10 qmailadmin Web方式管理Qmail <br>
10.1 安装ezmlm-0.53 <br>
#tar zxvf ezmlm-0.53.tar.gz <br>
#cd ezmlm-0.53 <br>
#make <br>
#make man <br>
#make setup <br>
<br>
10.2 安装autorespond-1.0.0 <br>
#tar zxvf autorespond-1.0.0.tar.gz <br>
#cd autorespond-1.0.0 <br>
#gcc –Wall –o autorespond autorespond.c <br>
#cp autorespond /usr/local/bin/autorespond <br>
<br>
10.3 安装qmailadmin-0.45 <br>
在安装之前先确认: <br>
·你是否已经安装了vpopmail,并使用vchkpw <br>
·Web服务器的cgi目录位置 <br>
·ezmlm所在目录 <br>
·autorespond所在目录 <br>
确认以上的工作已完成,可以开始安装qmailadmin <br>
<br>
10.4 安装 <br>
#tar zxvf qmailadmin-0.45.tar.gz <br>
#cd qmailadmin-0.45 <br>
#./configure <br>
#make <br>
#make install-strip <br>
<br>
测试:在浏览器中打开<a target=_blank href=http://mail.domain.com/cgi-bin/qmailadmin>http://mail.domain.com/cgi-bin/qmailadmin</a>就可以看到管理 界面了。 <br>
<br>
用户:postmaster <br>
域:domain.com <br>
口令:password <br>
<br>
11 Webmail程序-sqwebmail的安装 <br>
#tar zxvf sqwebmail-2.1.1.tar.gz <br>
#cd sqwebmail-2.1.1 <br>
#./configure --with-cachedir <br>
--without-gzip <br>
--enable-mimecharset=gb2312 <br>
--without-authmysql <br>
--with-authvchkpw <br>
--without-authdaemon <br>
--without-authpam <br>
--with-authuserdb <br>
--enable-webpass=y <br>
--with-authpwd <br>
--with-authshadow <br>
<br>
#make configure-check <br>
#make <br>
#make check <br>
#make install-strip <br>
#make install-configure <br>
<br>
测试:在浏览器中打开:<a target=_blank href=http://mail.domain.com/cgi-bin/sqwebmail>http://mail.domain.com/cgi-bin/sqwebmail</a>就可以看到 webmail的登陆界面了。 <br>
<br>
12 vqsingup的安装 <br>
#tar zxvf vqsignup-0.5.tar.gz <br>
#cd vqsignup-0.5 <br>
#./configure <br>
#make <br>
#make install <br>
<br>
12.1 安装配置vqsignup <br>
·拷贝vqsignup.cgi到apache的cgi-bin目录 <br>
·修改vqsignup.cgi的用户、组及访问权限,进入cgi-bin目录 <br>
<br>
#chown vpopmail.vchkpw vqsingup.cgi <br>
#chmod ug+s vqsignup.cgi <br>
<br>
·拷贝vqsignup.conf到cgi-bin目录下,确保其可以被所有用户可读 <br>
#chmod ugo+r vqsignup.conf <br>
<br>
·拷贝vqsignup_html到cgi-bin目录,并确保该文件是所有用户可读 <br>
·拷贝vqsignup.html到DocumentRoot目录,确保其是所有用户可读 <br>
·编辑cgi-bin目录下的vqsignup.conf文件 <br>
<br>
修改”add_domain”一行,包含你希望支持的虚拟域 <br>
修改”result_*”行,指定vqsignup_text/*.html的完全路径 <br>
<br>
·进入vqsignup_text目录,编辑每个文件,使其只包含你所希望支持的虚拟域,若希望界面美观,则编辑html文件 <br>
<br>
·编辑DocumentRoot目录下的vqsignup.html文件,使其只包含你所希望支持的虚拟域,若希望界面美观,则编辑html文件 <br>
测试:在浏览器中打开<a target=_blank href=http://mail.domain.com/vqsignup.html>http://mail.domain.com/vqsignup.html</a>,来测试注册账号。 <br>
<br>
激活qmail SMTP , POP3 daemon 系统服务 <br>
首先建立SMTP转信规则 <br>
建立/etc/tcp.smtp 内容为 <br>
:allow <br>
这样设置代表接受任何client端所发出的转送信件 <br>
<br>
若要拒绝某些IP所发出的Relay,则改/etc/tcp.smtp如下: <br>
1.2.3.4:low,RELAYCLIENT=”” <br>
127.:allow,RELAYCLIENT=”” <br>
这样,除了1.2.3.4和127.*之外的所有IP地址都将被拒绝转送信件。 <br>
<br>
接下来将tcp.smtp转换成cdb格式 <br>
#/usr/local/bin/tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp < /etc/tcp.smtp <br>
注意:如果对tcp.smtp有任何修改,都必须通过tcprules转换成cdb才会生效,另外,如果tcp.smtp为空,则表示拒绝所有的转送,因为预设的规则为deny。至此,转送规则已经建立,稍候将用此规则来启动qmail-smtpd。 <br>
<br>
将SMTP和POP3 daemon激活 <br>
首先去掉inetd.conf(xinetd.conf)中有关smtp和pop3的注释 <br>
然后编辑/etc/services,修改后如下: <br>
smtp 25/tcp mail <br>
pop3 110/tcp pop-3 <br>
pop3 110/udp pop-3 <br>
<br>
启动Qmail: <br>
# csh -cf "/var/qmail/rc &" <br>
<br>
启动SMTP服务: <br>
#/usr/local/bin/tcpserver -H -R -l 0 -t 1 -c 100 -x /etc/tcp.smtp.cdb -u 502 -g 501 0 smtp /var/qmail/bin/qmail-smtpd h4ck.org /home/vpopmail/bin/vchkpw /bin/true /bin/cmd5checkpw /bin/true & <br>
<br>
·这里的-u 502中的501是qmaild的UID,-g 518中的518是nofiles的GID,/var/qmail/bin/splogger那一行会将log写入/etc/log/maillog <br>
<br>
启动POP3服务: <br>
#/usr/local/bin/tcpserver -H -R 0 pop-3 /var/qmail/bin/qmail-popup h4ck.org /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir & <br>
Re:Exchange 2000常见问题解决集---仅供参考,请各位勿回贴,谢谢!
Exchange 2000 Server Database Recovery <br>Exchange 2000 Server Database Recovery <br>Topics on this Page <br>
<br>
<br>Introduction <br>Overview <br>Where is Exchange 2000 Data Stored? <br>Disaster Recovery Strategy Fundamentals <br>Information Store Backup and Restoration Overview <br>Information Store Recovery Scenarios <br>Recovering the Site Replication Service Database <br>Internet Information Service Metabase Recovery <br>Active Directory Recovery <br>Key Management Service Database Recovery <br>Appendix A: Changing legacyExchangeDN Attribute values <br>For More Information <br>
<br>
<br>
<br>
<br>Microsoft Product Support Services White Paper <br>
<br>
<br>
更详细的信息,请参见: <br>
<a target=_blank href=http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechn>http://www.microsoft.com/technet/treeview/default.asp?url=/technet/prodtechn</a> <br>
ol/exchange/exchange2000/support/exctopkb.asp <br>
<br>
页:
[1]