Part 3 - EZmlm
安装EZmlm
cd /downloads/qmailrocks/
tar zxvf ezmlm-0.53-idx-0.41.tar.gz
cd ezmlm-0.53-idx-0.41
make && make setup
Part 4 - Autoresponder
安装Autoresponder
cd /downloads/qmailrocks
tar zxvf autorespond-2.0.5.tar.gz
cd autorespond-2.0.5
make && make install
Part 5 - Vpopmail w/MySQL
安装支持MySQL的Vpopmail
mkdir ~vpopmail/etc
chown vpopmail:vchkpw ~vpopmail/etc
设置数据库管理账号echo "localhost|0|vpopmailuser|password|vpopmail" > ~vpopmail/etc/vpopmail.mysql
chown vpopmail:vchkpw ~vpopmail/etc/vpopmail.mysql
chmod 640 ~vpopmail/etc/vpopmail.mysql
mysql -u root -pCREATE DATABASE vpopmail;
GRANT select,insert,update,delete,create,drop ON vpopmail.* TO vpopmailuser@localhost IDENTIFIED BY 'password';
quit
然后测试一下管理用户是否有效
mysql -u vpopmailuser -p
用刚才指定的密码登录,如果可以登录MySQL,说明一切正常
cd /downloads/qmailrocks
tar zxvf vpopmail-5.4.13.tar.gz
cd vpopmail-5.4.13
./configure --enable-logging=p --enable-auth-module=mysql --disable-passwd --enable-clear-passwd --disable-many-domains --enable-auth-logging --enable-sql-logging --enable-valias --disable-mysql-limits
make && make install-strip
Part 6 - Vqadmin
cd /downloads/qmailrocks
tar zxvf vqadmin-2.3.6.tar.gz
cd vqadmin-2.3.6
./configure
--enable-cgibindir=
/var/www/cgi-bin/vqadmin
--enable-htmldir=
/var/www/html
make && make install-strip
编辑httpd.conf,增加如下内容
<Directory "/var/www/cgi-bin/vqadmin">deny from all
Options ExecCGI
AllowOverride AuthConfig
Order deny,allow
</Directory>
cd /var/www/cgi-bin/vqadmin
编辑htaacess,修改红色部分
vi .htaccess
AuthType Basic
AuthUserFile / var/www/vqadmin .htpasswd
AuthName vQadmin
require valid-user
satisfy any
chown apache .htaccess
chmod 644 .htaccesshtpasswd -bc / var/www/vqadmin .htpasswd admi admin_password
chmod 644 / var/www/vqadmin .htpasswd
apachectl stop
apachectl start
测试刚才设的用户名和密码是否有效访问http:// www .yourdomain .com /cgi-bin/vqadmin/vqadmin.cgi
如果可以正常登录,说明刚才设置的用户和密码有效
Part 7- Maildrop
cd /downloads/qmailrocks
tar zxvf
maildrop-1.6.3.tar.gz
cd maildrop-1.6.3
./configure --prefix=/usr/local --exec-prefix=/usr/local --enable-maildrop-uid=root --enable-maildrop-gid=vchkpw --enable-maildirquota
make && make install-strip &&
make install-man
Part 8 - Qmailadmind /downloads/qmailrocks
tar zxvf qmailadmin-1.2.9.tar.gz
cd qmailadmin-1.2.9
./configure
--enable-cgibindir=
/var/www/cgi-bin/
--enable-htmldir=
/var/www/html
make && make install-strip
Part 9 - Finalizing Qmail
运行这个脚本进行最后的工作
/downloads/qmailrocks/scripts/finalize/linux/finalize_linux.script
编辑脚本,替换mail.example.com为实际的邮件服务器主机名
vi /var/qmail/supervise/qmail-pop3d/run
vi /var/qmail/supervise/qmail-smtpd/run
qmailctl stop
echo '127.:allow,RELAYCLIENT=""' >> /etc/tcp.smtp
qmailctl cdb
echo
some_address
> /var/qmail/alias/.qmail-root
echo
some_address
> /var/qmail/alias/.qmail-postmaster
echo
some_address
> /var/qmail/alias/.qmail-mailer-daemon
ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous
chmod 644 /var/qmail/alias/.qmail*
转载于:https://blog.51cto.com/coolerfeng/76510