Qmail Installation on Debian Lenny

DELETEME This page is nominated for deletion: These instructions contain nothing specific to Koha and also some poor security practice. It should be put on the qmailrocks site or someone's personal website, not here.

These instructions are adapted from the process described on qmailrocks.org:

(From the command-line, logged in as the Koha admin.)

  1. sudo apt-get install patchutils
  2. sudo cpan Digest::SHA1 Digest::HMAC Net::DNS Time::HiRes HTML::Tagset HTML::Parser
  3. (in the farthest down directory) sudo mkdir downloads
  4. cd downloads
  5. tar -xvvf qmailrocks.tar.gz
  6. sudo /downloads/qmailrocks/scripts/install/qmr_install_linux-s1.script
  7. sudo /downloads/qmailrocks/scripts/util/qmail_big_patches.script
  8. cd /usr/src/qmail/qmail-1.03
  9. sudo make man && sudo make setup check
  10. sudo ./config-fast [mail.mydomain.com]
  11. sudo make cert
  12. sudo chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem
  13. sudo pico /usr/src/qmail/ucspi-tcp-0.88/error.h
  14. replace “extern int errno;” with ”#include <errno.h>”
  15. sudo make && sudo make setup check
  16. sudo pico /package/admin/daemontools-0.76/src/error.h
  17. replace “extern int errno;” with ”#include <errno.h>”
  18. cd /package/admin/daemontools-0.76
  19. sudo package/install
  20. sudo /downloads/qmailrocks/scripts/finalize/linux/finalize_linux.script
  21. sudo pico /var/qmail/supervise/qmail-pop3d/run
  22. replace “mail.example.com” with your server's hostname
  23. sudo qmailctl stop
  24. su (change to root/superuser)
  25. echo '127.:allow,RELAYCLIENT=””' » /etc/tcp.smtp
  26. qmailctl cdb
  27. echo [your email here] > /var/qmail/alias/.qmail-root
  28. echo [your email here] > /var/qmail/alias/.qmail-postmaster
  29. echo [your email here] > /var/qmail/alias/.qmail-mailer-daemon
  30. rm /var/qmail/alias/.qmail-anonymous
  31. ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous
  32. chmod 644 /var/qmail/alias/.qmail*
  33. exit
  34. sudo /etc/init.d/exim4 stop
  35. cd /etc/rc2.d
  36. sudo mv S20exim4 K20exim4
  37. sudo rm -f /usr/lib/sendmail
  38. sudo rm -f /usr/sbin/sendmail
  39. sudo ln -s /var/qmail/bin/sendmail /usr/lib/sendmail
  40. sudo ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail
  41. sudo dpkg –purge –force-depends postfix
  42. sudo /downloads/qmailrocks/scripts/util/qmr_inst_check
  43. sudo qmailctl stop
  44. sudo qmailctl start
  45. sudo qmailctl stat (shows stats)
  46. 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]

 
en/documentation/tutorials/qmaillenny.txt · Last modified: 2010/02/05 04:39 by mjray
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki