Professional Documents
Culture Documents
# Following script create necessary user and groups as well as all the needed directories
#Permissions and ownership settings needed for the installation of qmail, ucspi-tcp and daemontools
/downloads/qmailrocks/scripts/install/qmr_install_linux-s1.script
#The following patch will build all sorts of cool functionality directly into qmail before install it.
/downloads/qmailrocks/scripts/util/qmail_big_patches.script
#For Build/install qmail
cd /usr/src/qmail/qmail-1.03
make man && make setup check
./config-fast hostname
make cert
chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem
cd /usr/src/qmail/ucspi-tcp-0.88
patch < /downloads/qmailrocks/patches/ucspi-tcp-0.88.errno.patch
make && make setup check
cd /package/admin/daemontools-0.76
cd /package/admin/daemontools-0.76/src
patch < /downloads/qmailrocks/patches/daemontools-0.76.errno.patch
cd /package/admin/daemontools-0.76
package/install
Part 3 – Ezmlm
Part 6 - Vqadmin
Vqadmin is simply a nice web based interface that will let us manage Vpopmail. Through the interface we
can
create new domains, new users, net quotas, enable services and much more.
cd /downloads/qmailrocks
tar zxvf vqadmin-2.3.6.tar.gz
cd vqadmin-2.3.6
cp ../vpopmain/config.sub .
# ./configure --enable-cgibindir=/path/to/your/cgi-bin --enable-htmldir=/path/to/your/html/directory
./configure --enable-cgibindir=/var/www/cgi-bin --enable-htmldir=/var/www/html
make && make install-strip
vi /etc/httpd/conf/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
vi .htaccess
AuthType Basic
AuthUserFile /etc/htpasswd
AuthName vQadmin
require valid-user
satisfy any
Part 7- Maildrop
Maildrop is a mail filtering agent which can be used to filter messages as they arrive on the server.
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 – Qmailadmin
Qmailadmin is going to provide us with a nice web based interface for administering mail accounts. From
Qmailadmin we can create mailboxes, aliases, fowards, mailing lists.
cd /downloads/qmailrocks
tar zxvf qmailadmin-1.2.9.tar.gz
cd qmailadmin-1.2.9
#./configure --enable-cgibindir=/path/to/your/cgi-bin --enable-htmldir=/path/to/your/html/directory
./configure --enable-cgibindir=/var/www/cgi-bin --enable-htmldir=/var/www/html
make && make install-strip
# Follow the link to access Qmail Admin
http://www.yourdomain/cgi-bin/qmailadmin
/downloads/qmailrocks/scripts/finalize/linux/finalize_linux.script
vi /var/qmail/supervise/qmail-pop3d/run
Find "mail.example.com" and change it to your server's hostname. For example: mail.mydomain.com.
vi /var/qmail/supervise/qmail-smtpd/run
Find "mail.example.com" and change it to your server's hostname. For example: mail.mydomain.com
Change the soft limit of the file
exec /usr/local/bin/softlimit -m 90000000
echo '127.:allow,RELAYCLIENT=""' >> /etc/tcp.smtp
qmailctl cdb
# For start qmail
svscanboot &
vi /usr/local/etc/imapd
IMAPDSTART=YES
vi /usr/local/etc/imapd-ssl
IMAPDSSLSTART=YES
TLS_CERTFILE=/usr/local/share/imapd.pem
vi /usr/local/etc/authlib/authdaemonrc
#Go to 27 line
#Comment this line and write the following line
authmodulelist="authvchkpw"
cp /usr/local/libexec/imapd.rc /etc/rc.d/init.d/imap
cp /usr/local/libexec/imapd-ssl.rc /etc/rc.d/init.d/imaps
/usr/local/sbin/authdaemond start
/etc/rc.d/init.d/imap start
/etc/rc.d/init.d/imaps start
#Courierpassd is going allow us to enable your mail users to change their own mail passwords via the
Squirrelmail interface.
yum install xinetd
cd /downloads/qmailrocks
tar zxvf courierpassd-1.1.0-RC1.tar.gz
cd courierpassd-1.1.0-RC1
./configure
make && make install
cd /etc/xinetd.d
vi courierpassd
service courierpassd
{
port = 106
socket_type = stream
protocol = tcp
user = root
server = /usr/local/sbin/courierpassd
server_args = -s imap
wait = no
only_from = 127.0.0.1
instances = 4
disable = no
}
vi /etc/services
courierpassd 106/tcp #for /etc/xinetd.d/courierpassd
/etc/rc.d/init.d/xinetd restart