Qmail Installation
Build Qmail tar zxvf qmailrocks.tar.gz tar zxvf qmailrocks.tar.gz Edit and Run : Edit and Run : /test/qmailrocks/scripts/install/qmr_install_linux-s1.script /test/qmailrocks/scripts/install/qmr_install_linux-s1.script Edit and Run : Edit and Run : /test/qmailrocks/scripts/util/qmail_big_patches.script /test/qmailrocks/scripts/util/qmail_big_patches.script cd /usr/src/qmail/qmail-1.03 cd /usr/src/qmail/qmail-1.03 make man && make setup check make man && make setup check./config-fast your_fqdn_hostname (ex:./config-fast mail.mydomain.com)./config-fast your_fqdn_hostname (ex:./config-fast mail.mydomain.com) make cert make cert
Build Qmail Country Name (2 letter code) [GB]:US State or Province Name (full name) [Berkshire]:Georgia Locality Name (eg, city) [Newbury]:Atlanta Organization Name (eg, company) [My Company Ltd]:qmailrocks.org Organizational Unit Name (eg, section) []:mail Common Name (eg, your name or your server's hostname) []:mail.qmailrocks.org Address Country Name (2 letter code) [GB]:US State or Province Name (full name) [Berkshire]:Georgia Locality Name (eg, city) [Newbury]:Atlanta Organization Name (eg, company) [My Company Ltd]:qmailrocks.org Organizational Unit Name (eg, section) []:mail Common Name (eg, your name or your server's hostname) []:mail.qmailrocks.org Address
Build ucspi-tcp chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem cd /usr/src/qmail/ucspi-tcp-0.88/ cd /usr/src/qmail/ucspi-tcp-0.88/ patch < /downloads/qmailrocks/patches/ucspi-tcp errno.patch patch < /downloads/qmailrocks/patches/ucspi-tcp errno.patch make && make setup check make && make setup check
Build Mdaemontools cd /package/admin/daemontools-0.76 cd /package/admin/daemontools-0.76 cd /package/admin/daemontools-0.76/src cd /package/admin/daemontools-0.76/src patch < /downloads/qmailrocks/patches/daemontools errno.patch patch < /downloads/qmailrocks/patches/daemontools errno.patch cd /package/admin/daemontools-0.76 cd /package/admin/daemontools-0.76 package/install package/install Check Svscanboot
Build Ezmlm cd /downloads/qmailrocks/ cd /downloads/qmailrocks/ tar zxvf ezmlm-0.53-idx-0.41.tar.gz tar zxvf ezmlm-0.53-idx-0.41.tar.gz cd ezmlm-0.53-idx-0.41 cd ezmlm-0.53-idx-0.41 make && make setup make && make setup
Build Autoresponder cd /downloads/qmailrocks cd /downloads/qmailrocks tar zxvf autorespond tar.gz tar zxvf autorespond tar.gz cd autorespond cd autorespond make && make install make && make install
Build Vpopmail cd /downloads/qmailrocks cd /downloads/qmailrocks tar zxvf vpopmail tar.gz tar zxvf vpopmail tar.gz cd vpopmail cd vpopmail /configure --enable-logging=p./configure --enable-logging=p make && make install-strip make && make install-strip
Build Vqadmin cd /downloads/qmailrocks cd /downloads/qmailrocks tar zxvf vqadmin tar.gz tar zxvf vqadmin tar.gz cd vqadmin cd vqadmin /configure --enable-cgibindir=/path/to/your/cgi-bin -- enable-htmldir=/path/to/your/html/directory./configure --enable-cgibindir=/path/to/your/cgi-bin -- enable-htmldir=/path/to/your/html/directory (Example:./configure --enable-cgibindir=/var/www/cgi- bin --enable-htmldir=/var/www/html ) (Example:./configure --enable-cgibindir=/var/www/cgi- bin --enable-htmldir=/var/www/html ) make && make install-strip make && make install-strip
Build Vqadmin Now you will need to add the following to your server's Apache configuration file (usually httpd.conf) deny from all Options ExecCGI AllowOverride AuthConfig Order deny,allow Now you will need to add the following to your server's Apache configuration file (usually httpd.conf) deny from all Options ExecCGI AllowOverride AuthConfig Order deny,allow In addition, within the Apache master config file you will want to set the "AllowOveride" option to "All". Example: AllowOverride All In addition, within the Apache master config file you will want to set the "AllowOveride" option to "All". Example: AllowOverride All
Build Vqadmin cd /path/to/your/cgi-bin/vqadmin cd /path/to/your/cgi-bin/vqadmin vi.htaccess vi.htaccess AuthType Basic AuthUserFile /path/to/where/you/want/to/store/the/password/file/.ht passwd AuthName vQadmin require valid-user satisfy any AuthType Basic AuthUserFile /path/to/where/you/want/to/store/the/password/file/.ht passwd AuthName vQadmin require valid-user satisfy any
Build Vqadmin chown apache.htaccess (you may need to change the chown to either "nobody", "apache" or "www" etc., depending on what user your installation of Apache is running as) chown apache.htaccess (you may need to change the chown to either "nobody", "apache" or "www" etc., depending on what user your installation of Apache is running as) chmod 644.htaccess chmod 644.htaccess htpasswd -bc /path/to/where/you/want/to/store/the/password/file/.ht passwd admin admin_password htpasswd -bc /path/to/where/you/want/to/store/the/password/file/.ht passwd admin admin_password chmod 644 /path/to/where/you/want/to/store/the/password/file/.ht passwd chmod 644 /path/to/where/you/want/to/store/the/password/file/.ht passwd
Build Vqadmin apachectl stop apachectl stop apachectl start apachectl start If all has gone well, you should now be able to browse (in your web browser) to: bin/vqadmin/vqadmin.cgi If all has gone well, you should now be able to browse (in your web browser) to: bin/vqadmin/vqadmin.cgi
Build Maildrop cd /downloads/qmailrocks cd /downloads/qmailrocks tar zxvf maildrop tar.gz tar zxvf maildrop tar.gz cd maildrop cd maildrop /configure --prefix=/usr/local --exec- prefix=/usr/local --enabl drop- uid=root --enabl drop-gid=vchkpw -- enabl dirquota./configure --prefix=/usr/local --exec- prefix=/usr/local --enabl drop- uid=root --enabl drop-gid=vchkpw -- enabl dirquota make && make install-strip && make install-man make && make install-strip && make install-man
Build Qmailadmin cd /downloads/qmailrocks cd /downloads/qmailrocks tar zxvf qmailadmin tar.gz tar zxvf qmailadmin tar.gz cd qmailadmin cd qmailadmin /configure --enable-cgibindir=/path/to/your/cgi-bin -- enable-htmldir=/path/to/your/html/directory./configure --enable-cgibindir=/path/to/your/cgi-bin -- enable-htmldir=/path/to/your/html/directory make && make install-strip make && make install-strip
Finalizing Qmail Edit and Run : Edit and Run : /test/qmailrocks/scripts/finalize/linux/finalize_linux.script /test/qmailrocks/scripts/finalize/linux/finalize_linux.script vi /var/qmail/supervise/qmail-pop3d/run vi /var/qmail/supervise/qmail-pop3d/run Find "mail.example.com" and change it to your server's hostname. For example: mail.mydomain.com Find "mail.example.com" and change it to your server's hostname. For example: mail.mydomain.com vi /var/qmail/supervise/qmail-smtpd/run vi /var/qmail/supervise/qmail-smtpd/run Find "mail.example.com" and change it to your server's hostname. For example: mail.mydomain.com Find "mail.example.com" and change it to your server's hostname. For example: mail.mydomain.com
Finalizing Qmail qmailctl stop qmailctl stop echo '127.:allow,RELAYCLIENT="“' >> /etc/tcp.smtp echo '127.:allow,RELAYCLIENT="“' >> /etc/tcp.smtp qmailctl cdb qmailctl cdb
Finalizing Qmail echo some_address > /var/qmail/alias/.qmail-root echo some_address > /var/qmail/alias/.qmail-root echo some_address > /var/qmail/alias/.qmail- postmaster echo some_address > /var/qmail/alias/.qmail- postmaster echo some_address > /var/qmail/alias/.qmail-mailer- daemon echo some_address > /var/qmail/alias/.qmail-mailer- daemon ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous chmod 644 /var/qmail/alias/.qmail* chmod 644 /var/qmail/alias/.qmail*
Removing Sendmail rpm -qa | grep sendmail rpm -qa | grep sendmail /etc/rc.d/init.d/sendmail stop (to stop Sendmail) /etc/rc.d/init.d/sendmail stop (to stop Sendmail) rpm -e --nodeps sendmail-x.x.x.x rpm -e --nodeps sendmail-x.x.x.x
Removing PostFix rpm -qa | grep postfix rpm -qa | grep postfix /etc/rc.d/init.d/postfix stop /etc/rc.d/init.d/postfix stop rpm -e --nodeps postfix-x.x-x rpm -e --nodeps postfix-x.x-x ln -s /var/qmail/bin/sendmail /usr/lib/sendmail ln -s /var/qmail/bin/sendmail /usr/lib/sendmail ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
Starting Qmail Run : Run : /test/qmailrocks/scripts/util/qmr_inst_check /test/qmailrocks/scripts/util/qmr_inst_check qmailctl stop qmailctl stop qmailctl start qmailctl start qmailctl stat qmailctl stat
Starting Qmail service/qmail-send: up (pid 29956) 2 seconds /service/qmail-send/log: up (pid 29960) 2 seconds /service/qmail-smtpd: up (pid 29963) 2 seconds /service/qmail-smtpd/log: up (pid 29968) 2 seconds /service/qmail-pop3d: up (pid 29971) 2 seconds /service/qmail-pop3d/log: up (pid 29972) 2 seconds messages in queue: 0 messages in queue but not yet preprocessed: 0 service/qmail-send: up (pid 29956) 2 seconds /service/qmail-send/log: up (pid 29960) 2 seconds /service/qmail-smtpd: up (pid 29963) 2 seconds /service/qmail-smtpd/log: up (pid 29968) 2 seconds /service/qmail-pop3d: up (pid 29971) 2 seconds /service/qmail-pop3d/log: up (pid 29972) 2 seconds messages in queue: 0 messages in queue but not yet preprocessed: 0
Testing Qmail Telnet to localhost 110 Telnet to localhost 110 Trying Connected to Escape character is '^]'. +OK user (enter your username here. remember to use the full address) +OK pass your_password +OK quit +OK Connection closed by foreign host. Trying Connected to Escape character is '^]'. +OK user (enter your username here. remember to use the full address) +OK pass your_password +OK quit +OK Connection closed by foreign host.
Testing Qmail Telnet to localhost 25 Telnet to localhost 25 Trying Connected to localhost. Escape character is '^]'. 220 somewhere.anywhere.com ESMTP ehlo localhost 250-somewhere.anywhere.com 250-AUTH LOGIN CRAM-MD5 PLAIN 250-AUTH=LOGIN CRAM-MD5 PLAIN 250-STARTTLS 250-PIPELINING 250 8BITMIME starttls 220 ready for tls quit quit Connection closed by foreign host. control]# Trying Connected to localhost. Escape character is '^]'. 220 somewhere.anywhere.com ESMTP ehlo localhost 250-somewhere.anywhere.com 250-AUTH LOGIN CRAM-MD5 PLAIN 250-AUTH=LOGIN CRAM-MD5 PLAIN 250-STARTTLS 250-PIPELINING 250 8BITMIME starttls 220 ready for tls quit quit Connection closed by foreign host. control]#
Testing Qmail Testing on Microsoft Outlook Testing on Microsoft Outlook
FINISH > Continue to webmail configuration Continue to webmail configuration <