7、定义运行脚本及投送方式:cp /var/qmail/boot/home /var/qmail/rc
对rc文件进行修改,以决定投送方式:
# vi /var/qmail/rc
#!/bin/sh
# Using splogger to send the log through syslog.
# Using dot-forward to support sendmail-style ~/.forward files.
# Using qmail-local to deliver messages to ~/Mailbox by default.
附configure的主要参数:
--enable-qmaildir=dir directory where qmail control and user directories are installed. default is /var/qmail"
--enable-qmail-newu=path Full path to qmail-newu program"
--enable-qmail-inject=path Full path to qmail-inject program"
--enable-qmail-newmrh=path Full path to qmail-newmrh program"
--enable-vpopuser=vpopmail user vchkpw was installed as."
--enable-vpopgroup=vchkpw group vchkpw was installed as."
--enable-roaming-users=n|y Enable or disable open relay after pop authentication. Default is no"
--enable-tcprules-prog=/usr/local/bin/tcprules where is your tcprules program."
--enable-tcpserver-file=/home/vpopmail/etc/tcp.smtp File where tcpserver -x relay information is stored."
--enable-relay-clear-minutes=180 expire time for roaming users after pop authentication."
--enable-learn-passwords=y|n (n, default) if password is blank, learn password when they pop auth."
--enable-md5-passwords=y|n (y, default ) to store encrypted passwords as md5."
--enable-auth-logging=y|n (n, default) logging authentication attempts, only valid for mysql and oracle"
--enable-mysql-logging=y|n (n, default) logging detailed authentication attempts, only valid for mysql"
--enable-clear-passwd=n|y (y, default) storing clear text passwords"
--enable-logging=e|y|n|p|v (e) only log errors, include passwords (p), (v) verbose errors with passwords"
--enable-sqwebmail-pass=y|n sqwebmail passwords (n default) For sqwebmail-3.0 and above use default no"
--enable-log-name=vpopmail set syslog name."
--enable-domains-dir=domains set domains directory name for ~vpopmail/[domains]/user/."
--enable-default-domain=name Default domain name, default is null."
--enable-incdir=path-to-auth-include Directory where auth include files are."
--enable-libdir=path-to-auth-libs Directory where auth libs are."
--enable-libs=mysqlclient libraries for sql linking."
--enable-mysql=n|y use mysql, default is no"
--enable-mysql-replication=n|y (n, default) enable mysql replication"
--enable-valias=n|y (n, default) enable mysql alias processing"
--enable-file-locking=n|y (y, default) enable file locking"
--enable-file-sync=y|n (n default) enable file sync"
--enable-many-domains=n|y (y, default) no optimizes for sites with one domain and many users"
--enable-ldap=n|y use ldap, default is no"
--enable-oracle=n|y use oracle, default is no"
--enable-sybase=n|y use sybase, default is no"
--enable-qmail-ext=y|n enable qmail email address extensions (default no). "
--enable-ip-alias-domains=y|n enable virutal domain lookup via reverse ip address lookup for virtual domains. "
--enable-passwd=y|n Enable or disable /etc/passwd (or shadow) authentication. Default is no"
--enable-defaultquota=# or n where # is the quota as defined in README.quotas. NOT y, do not use Y, y is BAD"
# !/bin/sh
# Using splogger to send the log through syslog.
# Using qmail-local to deliver messages to ~/Maildir by default.
exec env - PATH="/var/qmail/bin:$PATH"\
qmail-start ./Maildir splogger q
3.1. Before we can make and install there are a few things to consider..
a. do you have a vpopmail user and installed vchkpw
b. where is your cgi bin directory
c. where is your ezmlm directory
d. where is your autorespond directory
If you are missing any one of those you can stop reading this now and go install it!!
WebMail -- SqWebmail
# tar xvfz sqwebmail-1.2.0.tar.gz
# cd sqwebmail-1.2.0
# ./configure --without-authpam --without-authuserdb --enable-webpass=no --without-authpwd --without-authshadow
# make configure-check
# make (当我make的时候报错找不到db.h,cp /usr/include/db1/db.h /usr/include/db.h)
# make check
# make install-strip
# make install-configure
浏览器中打开路径http://mail.mydomain.com/cgi-bin/sqwebmail
vqsignup
# tar xvfz vqsignup-0.4.tar.gz
# cd vqsignup-4.0
按照INSTALL安装