sudo apt-get install patchutils
sudo cpan Digest::SHA1 Digest::HMAC Net::
DNS Time::
HiRes HTML::Tagset
HTML::Parser
(in the farthest down directory) sudo mkdir downloads
cd downloads
-
tar -xvvf qmailrocks.tar.gz
sudo /downloads/qmailrocks/scripts/install/qmr_install_linux-s1.script
sudo /downloads/qmailrocks/scripts/util/qmail_big_patches.script
cd /usr/src/qmail/qmail-1.03
sudo make man && sudo make setup check
sudo ./config-fast [mail.mydomain.com]
sudo make cert
sudo chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem
sudo pico /usr/src/qmail/ucspi-tcp-0.88/error.h
replace “extern int errno;” with ”#include <errno.h>”
sudo make && sudo make setup check
sudo pico /package/admin/daemontools-0.76/src/error.h
replace “extern int errno;” with ”#include <errno.h>”
cd /package/admin/daemontools-0.76
sudo package/install
sudo /downloads/qmailrocks/scripts/finalize/linux/finalize_linux.script
sudo pico /var/qmail/supervise/qmail-pop3d/run
replace “mail.example.com” with your server's hostname
sudo qmailctl stop
su (change to root/superuser)
echo '127.:allow,RELAYCLIENT=””' » /etc/tcp.smtp
qmailctl cdb
echo [your email here] > /var/qmail/alias/.qmail-root
echo [your email here] > /var/qmail/alias/.qmail-postmaster
echo [your email here] > /var/qmail/alias/.qmail-mailer-daemon
rm /var/qmail/alias/.qmail-anonymous
ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous
chmod 644 /var/qmail/alias/.qmail*
exit
sudo /etc/init.d/exim4 stop
cd /etc/rc2.d
sudo mv S20exim4 K20exim4
sudo rm -f /usr/lib/sendmail
sudo rm -f /usr/sbin/sendmail
sudo ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
sudo ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
sudo dpkg –purge –force-depends postfix
sudo /downloads/qmailrocks/scripts/util/qmr_inst_check
sudo qmailctl stop
sudo qmailctl start
sudo qmailctl stat (shows stats)
test (echo To: joe@example.com | /var/qmail/bin/qmail-inject)
NOTE: qmail can be reconfigured through /usr/src/qmail/qmail-1.03/config-fast [hostname]