I prefer qmail, which I've set up on several Koha servers. I wrote these (hopefully) easy instructions for qmail installation on Debian Lenny, though it should be similar for other *nix systems. It's 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) wget http://www.qmailrocks.org/downloads/qmailrocks.tar.gz <http://webmail.varndean.co.uk/exchweb/bin/redir.asp?URL=http://www.qmailrocks.org/downloads/qmailrocks.tar.gz> 6) tar -xvvf qmailrocks.tar.gz 7) sudo /downloads/qmailrocks/scripts/install/qmr_install_linux-s1.script 8) sudo /downloads/qmailrocks/scripts/util/qmail_big_patches.script 9) cd /usr/src/qmail/qmail-1.03 10) sudo make man && sudo make setup check 11) sudo ./config-fast [mail.mydomain.com] 12) sudo make cert 13) sudo chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem 14) sudo pico /usr/src/qmail/ucspi-tcp-0.88/error.h 15) replace "extern int errno;" with "#include <errno.h>" 16) sudo make && sudo make setup check 17) sudo pico /package/admin/daemontools-0.76/src/error.h 18) replace "extern int errno;" with "#include <errno.h>" 19) cd /package/admin/daemontools-0.76 20) sudo package/install 21) sudo /downloads/qmailrocks/scripts/finalize/linux/finalize_linux.script 22) sudo pico /var/qmail/supervise/qmail-pop3d/run 23) replace "mail.example.com" with your server's hostname 24) sudo qmailctl stop 25) su (change to root/superuser) 26) echo '127.:allow,RELAYCLIENT=""' >> /etc/tcp.smtp 27) qmailctl cdb 28) echo [your email here] > /var/qmail/alias/.qmail-root 29) echo [your email here] > /var/qmail/alias/.qmail-postmaster 30) echo [your email here] > /var/qmail/alias/.qmail-mailer-daemon 31) echo [your email here] > /var/qmail/alias/.qmail-anonymous 32) rm /var/qmail/alias/.qmail-anonymous 33) ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous 34) chmod 644 /var/qmail/alias/.qmail* 35) exit 36) sudo /etc/init.d/exim4 stop 37) cd /etc/rc2.d 38) sudo mv S20exim4 K20exim4 39) sudo rm -f /usr/lib/sendmail 40) sudo rm -f /usr/sbin/sendmail 41) sudo ln -s /var/qmail/bin/sendmail /usr/lib/sendmail 42) sudo ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail 43) sudo dpkg --purge --force-depends postfix 44) sudo /downloads/qmailrocks/scripts/util/qmr_inst_check 44) sudo qmailctl stop 45) sudo qmailctl start 46) sudo qmailctl stat (shows stats) 47) test (echo To: joe@example.com <mailto:joe@example.com> | /var/qmail/bin/qmail-inject) NOTE: qmail can be reconfigured through /usr/src/qmail/qmail-1.03/config-fast [hostname] -Emrys ________________________________ From: koha-bounces@lists.katipo.co.nz on behalf of Vimal Kumar Sent: Tue 26/01/2010 08:03 To: Koha-List Subject: [Koha] Email alert from Koha Dear Friends, This is a request to Koha users with experience in configuring mail system (Sendmail or Postfix) for Koha. Many Koha users wish the availability of a documentation for preparing Koha to send automatic overdue notice and advance notices. Documentation to be include installation of sendmail or postfix, configuration, settings in Koha for mail alerts, and settings for cronjob. Thanks in advance, -- Vimal Kumar V. Asst. Librarian Asian School of Business Technopark, Trivandrum-695 581 Web: www.vimalkumar.co.nr <http://webmail.varndean.co.uk/exchweb/bin/redir.asp?URL=http://www.vimalkumar.co.nr/> Blog: http://vimalkumar.oksociety.in <http://webmail.varndean.co.uk/exchweb/bin/redir.asp?URL=http://vimalkumar.oksociety.in/> OK Society Volunteer. http://oksociety.in <http://webmail.varndean.co.uk/exchweb/bin/redir.asp?URL=http://oksociety.in/> --------------------------------------------------------------------------- "I forget what I was taught. I only remember what I have learnt" -Patrick White
In my previous email, ignore the html rubbish after email addresses and urls. The only email I can access where I am right now is a stupid MS Exchange system with no plain text options. Sorry. ________________________________ From: koha-bounces@lists.katipo.co.nz on behalf of Emrys Minnig Sent: Tue 26/01/2010 12:44 To: koha@lists.katipo.co.nz Subject: Re: [Koha] Email alert from Koha I prefer qmail, which I've set up on several Koha servers. I wrote these (hopefully) easy instructions for qmail installation on Debian Lenny, though it should be similar for other *nix systems. It's 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) wget http://www.qmailrocks.org/downloads/qmailrocks.tar.gz <http://webmail.varndean.co.uk/exchweb/bin/redir.asp?URL=http://www.qmailrocks.org/downloads/qmailrocks.tar.gz> 6) tar -xvvf qmailrocks.tar.gz 7) sudo /downloads/qmailrocks/scripts/install/qmr_install_linux-s1.script 8) sudo /downloads/qmailrocks/scripts/util/qmail_big_patches.script 9) cd /usr/src/qmail/qmail-1.03 10) sudo make man && sudo make setup check 11) sudo ./config-fast [mail.mydomain.com] 12) sudo make cert 13) sudo chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem 14) sudo pico /usr/src/qmail/ucspi-tcp-0.88/error.h 15) replace "extern int errno;" with "#include <errno.h>" 16) sudo make && sudo make setup check 17) sudo pico /package/admin/daemontools-0.76/src/error.h 18) replace "extern int errno;" with "#include <errno.h>" 19) cd /package/admin/daemontools-0.76 20) sudo package/install 21) sudo /downloads/qmailrocks/scripts/finalize/linux/finalize_linux.script 22) sudo pico /var/qmail/supervise/qmail-pop3d/run 23) replace "mail.example.com" with your server's hostname 24) sudo qmailctl stop 25) su (change to root/superuser) 26) echo '127.:allow,RELAYCLIENT=""' >> /etc/tcp.smtp 27) qmailctl cdb 28) echo [your email here] > /var/qmail/alias/.qmail-root 29) echo [your email here] > /var/qmail/alias/.qmail-postmaster 30) echo [your email here] > /var/qmail/alias/.qmail-mailer-daemon 31) echo [your email here] > /var/qmail/alias/.qmail-anonymous 32) rm /var/qmail/alias/.qmail-anonymous 33) ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous 34) chmod 644 /var/qmail/alias/.qmail* 35) exit 36) sudo /etc/init.d/exim4 stop 37) cd /etc/rc2.d 38) sudo mv S20exim4 K20exim4 39) sudo rm -f /usr/lib/sendmail 40) sudo rm -f /usr/sbin/sendmail 41) sudo ln -s /var/qmail/bin/sendmail /usr/lib/sendmail 42) sudo ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail 43) sudo dpkg --purge --force-depends postfix 44) sudo /downloads/qmailrocks/scripts/util/qmr_inst_check 44) sudo qmailctl stop 45) sudo qmailctl start 46) sudo qmailctl stat (shows stats) 47) test (echo To: joe@example.com <mailto:joe@example.com> | /var/qmail/bin/qmail-inject) NOTE: qmail can be reconfigured through /usr/src/qmail/qmail-1.03/config-fast [hostname] -Emrys ________________________________ From: koha-bounces@lists.katipo.co.nz on behalf of Vimal Kumar Sent: Tue 26/01/2010 08:03 To: Koha-List Subject: [Koha] Email alert from Koha Dear Friends, This is a request to Koha users with experience in configuring mail system (Sendmail or Postfix) for Koha. Many Koha users wish the availability of a documentation for preparing Koha to send automatic overdue notice and advance notices. Documentation to be include installation of sendmail or postfix, configuration, settings in Koha for mail alerts, and settings for cronjob. Thanks in advance, -- Vimal Kumar V. Asst. Librarian Asian School of Business Technopark, Trivandrum-695 581 Web: www.vimalkumar.co.nr <http://webmail.varndean.co.uk/exchweb/bin/redir.asp?URL=http://www.vimalkumar.co.nr/> Blog: http://vimalkumar.oksociety.in <http://vimalkumar.oksociety.in/> <http://webmail.varndean.co.uk/exchweb/bin/redir.asp?URL=http://vimalkumar.oksociety.in/> OK Society Volunteer. http://oksociety.in <http://oksociety.in/> <http://webmail.varndean.co.uk/exchweb/bin/redir.asp?URL=http://oksociety.in/> --------------------------------------------------------------------------- "I forget what I was taught. I only remember what I have learnt" -Patrick White _______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Added to the Tutorials on the Wiki: http://wiki.koha.org/doku.php?id=en:documentation:tutorials:qmaillenny Also - please feel free to contribute to the tutorials we started ages ago on the wiki: http://wiki.koha.org/doku.php?id=en:documentation:tutorials Thanks Nicole On Tue, Jan 26, 2010 at 7:44 AM, Emrys Minnig <emrysminnig@varndean.co.uk> wrote:
I prefer qmail, which I've set up on several Koha servers. I wrote these (hopefully) easy instructions for qmail installation on Debian Lenny, though it should be similar for other *nix systems. It's 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) wget http://www.qmailrocks.org/downloads/qmailrocks.tar.gz <http://webmail.varndean.co.uk/exchweb/bin/redir.asp?URL=http://www.qmailrocks.org/downloads/qmailrocks.tar.gz> 6) tar -xvvf qmailrocks.tar.gz 7) sudo /downloads/qmailrocks/scripts/install/qmr_install_linux-s1.script 8) sudo /downloads/qmailrocks/scripts/util/qmail_big_patches.script 9) cd /usr/src/qmail/qmail-1.03 10) sudo make man && sudo make setup check 11) sudo ./config-fast [mail.mydomain.com] 12) sudo make cert 13) sudo chown -R vpopmail:qmail /var/qmail/control/clientcert.pem /var/qmail/control/servercert.pem 14) sudo pico /usr/src/qmail/ucspi-tcp-0.88/error.h 15) replace "extern int errno;" with "#include <errno.h>" 16) sudo make && sudo make setup check 17) sudo pico /package/admin/daemontools-0.76/src/error.h 18) replace "extern int errno;" with "#include <errno.h>" 19) cd /package/admin/daemontools-0.76 20) sudo package/install 21) sudo /downloads/qmailrocks/scripts/finalize/linux/finalize_linux.script 22) sudo pico /var/qmail/supervise/qmail-pop3d/run 23) replace "mail.example.com" with your server's hostname 24) sudo qmailctl stop 25) su (change to root/superuser) 26) echo '127.:allow,RELAYCLIENT=""' >> /etc/tcp.smtp 27) qmailctl cdb 28) echo [your email here] > /var/qmail/alias/.qmail-root 29) echo [your email here] > /var/qmail/alias/.qmail-postmaster 30) echo [your email here] > /var/qmail/alias/.qmail-mailer-daemon 31) echo [your email here] > /var/qmail/alias/.qmail-anonymous 32) rm /var/qmail/alias/.qmail-anonymous 33) ln -s /var/qmail/alias/.qmail-root /var/qmail/alias/.qmail-anonymous 34) chmod 644 /var/qmail/alias/.qmail* 35) exit 36) sudo /etc/init.d/exim4 stop 37) cd /etc/rc2.d 38) sudo mv S20exim4 K20exim4 39) sudo rm -f /usr/lib/sendmail 40) sudo rm -f /usr/sbin/sendmail 41) sudo ln -s /var/qmail/bin/sendmail /usr/lib/sendmail 42) sudo ln -s /var/qmail/bin/sendmail /usr/sbin/sendmail 43) sudo dpkg --purge --force-depends postfix 44) sudo /downloads/qmailrocks/scripts/util/qmr_inst_check 44) sudo qmailctl stop 45) sudo qmailctl start 46) sudo qmailctl stat (shows stats) 47) test (echo To: joe@example.com <mailto:joe@example.com> | /var/qmail/bin/qmail-inject) NOTE: qmail can be reconfigured through /usr/src/qmail/qmail-1.03/config-fast [hostname]
-Emrys
________________________________
From: koha-bounces@lists.katipo.co.nz on behalf of Vimal Kumar Sent: Tue 26/01/2010 08:03 To: Koha-List Subject: [Koha] Email alert from Koha
Dear Friends,
This is a request to Koha users with experience in configuring mail system (Sendmail or Postfix) for Koha. Many Koha users wish the availability of a documentation for preparing Koha to send automatic overdue notice and advance notices. Documentation to be include installation of sendmail or postfix, configuration, settings in Koha for mail alerts, and settings for cronjob.
Thanks in advance,
-- Vimal Kumar V. Asst. Librarian Asian School of Business Technopark, Trivandrum-695 581 Web: www.vimalkumar.co.nr <http://webmail.varndean.co.uk/exchweb/bin/redir.asp?URL=http://www.vimalkumar.co.nr/> Blog: http://vimalkumar.oksociety.in <http://webmail.varndean.co.uk/exchweb/bin/redir.asp?URL=http://vimalkumar.oksociety.in/>
OK Society Volunteer. http://oksociety.in <http://webmail.varndean.co.uk/exchweb/bin/redir.asp?URL=http://oksociety.in/> --------------------------------------------------------------------------- "I forget what I was taught. I only remember what I have learnt" -Patrick White
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
"Emrys Minnig" <emrysminnig@varndean.co.uk>
I prefer qmail, which I've set up on several Koha servers. I wrote these (hopefully) easy instructions for qmail installation on Debian Lenny, though it should be similar for other *nix systems.
Those instructions don't look koha-specific and also seem to have some risky practices like downloading unsigned tarballs. Using one of the various qmail packages (like netqmail or qmail-ldap) is probably simpler, but I'm reminded of this quote from debian ftpmaster Joerg Jaspert:- "And then there is the question if such a piece of software should really go into Debian. There are *way* better MTAs out there that dont need tons of patches applied just to fulfill basic requirements for a MTA." http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457318#15 Please, only install qmail if you really want it and are sure that you have dealt with the spam backscatter and silly error message problems. Scarred, -- MJ Ray (slef) Webmaster and LMS developer at | software www.software.coop http://mjr.towers.org.uk | .... co IMO only: see http://mjr.towers.org.uk/email.html | .... op
Your concerns are valid. Installation is obviously not Koha-specific and I certainly didn't mean for my instructions to be adopted as canon; rather, I sought to answer the question at hand with explicit information. The tarball is unsigned -- bad practice, true enough -- but I know enough about qmailrocks.org and the surrounding community to be not overly worried. Further, the tarball (and instructions) include John Simpson's qmail patch collection, which should sort out any spam bounce/backscatter issues. As for qmail itself, its security credentials are sound, it's familiar to me and personally I prefer it to exim. To quote the thread in which J. Jaspert made the comment you refer to: On Fri, 21 Dec 2007, John H. Robinson, IV wrote:
On Fri, 21 Dec 2007, Don Armstrong wrote:
On Fri, 21 Dec 2007, John H. Robinson, IV wrote:
On Fri, 21 Dec 2007, Don Armstrong wrote:
On Fri, 21 Dec 2007, John H. Robinson, IV wrote:
On Fri, 21 Dec 2007, Don Armstrong wrote:
On Fri, 21 Dec 2007, John H. Robinson, IV wrote: > On Fri, 21 Dec 2007, Don Armstrong wrote: > > On Fri, 21 Dec 2007, John H. Robinson, IV wrote: > > > On Fri, 21 Dec 2007, Don Armstrong wrote: > > > > On Fri, 21 Dec 2007, John H. Robinson, IV wrote: > > > > > On Fri, 21 Dec 2007, Don Armstrong wrote: > > > > > > On Fri, 21 Dec 2007, John H. Robinson, IV wrote: > > > > > > > Joerg Jaspert wrote: > > > > > > > > > > > > > > > > There are *way* better MTAs [than qmail] out > > > > > > > > there that dont need tons of patches applied > > > > > > > > just to fulfill basic requirements for a > > > > > > > > MTA. > > > > > > > > > > > > > > No, there are not. > > > > > > > > > > > > Yes, there are. > > > > > > > > > > > No, there are not. > > > > > > > > Yes, there are. > > > > > > No, there are not. > > > > Yes, there are. > > No, there are not.
Yes, there are.
No, there are not.
Yes, there are.
No, there are not.
Yes, there are.
No, there are not. Yes, there are. Next? ;-)
Don Armstrong I had to laugh at that one. To some extent, it seems MTA choice is largely a matter of opinion. Emrys ________________________________ From: MJ Ray [mailto:mjr@phonecoop.coop] Sent: Sat 30/01/2010 02:10 To: Emrys Minnig Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Email alert from Koha "Emrys Minnig" <emrysminnig@varndean.co.uk>
I prefer qmail, which I've set up on several Koha servers. I wrote these (hopefully) easy instructions for qmail installation on Debian Lenny, though it should be similar for other *nix systems.
Those instructions don't look koha-specific and also seem to have some risky practices like downloading unsigned tarballs. Using one of the various qmail packages (like netqmail or qmail-ldap) is probably simpler, but I'm reminded of this quote from debian ftpmaster Joerg Jaspert:- "And then there is the question if such a piece of software should really go into Debian. There are *way* better MTAs out there that dont need tons of patches applied just to fulfill basic requirements for a MTA." http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=457318#15 Please, only install qmail if you really want it and are sure that you have dealt with the spam backscatter and silly error message problems. Scarred, -- MJ Ray (slef) Webmaster and LMS developer at | software www.software.coop http://mjr.towers.org.uk <http://mjr.towers.org.uk/> | .... co IMO only: see http://mjr.towers.org.uk/email.html | .... op
"Emrys Minnig" <emrysminnig@varndean.co.uk>
Your concerns are valid. Installation is obviously not Koha-specific and I certainly didn't mean for my instructions to be adopted as canon; rather, I sought to answer the question at hand with explicit information. [...]
The question at hand was how to configure Sendmail or Postfix for Koha. Replying with how to build a qmail fork from source and not configure it for Koha doesn't seem helpful, no matter what we think of the relative merits of the three emailing systems. Regards, -- MJ Ray (slef) Webmaster and LMS developer at | software www.software.coop http://mjr.towers.org.uk | .... co IMO only: see http://mjr.towers.org.uk/email.html | .... op
In our installations we use nullmailer, it is a minimal send-only MTA, we don't try to convert our Koha servers in full mail servers. In Ubuntu/Debian simply do "apt-get install nullmailer", then you must edit at least 2 archives /etc/nullmailer/me (one line, your hostname, e.g. koha.example.org) /etc/nullmailer/remotes (one line for each relay host, e.g. smtp.example.org ) optionally edit /etc/nullmailer/adminaddr (e.g. biliomaster@koha.example.orgor bibliomaster@example.org) Restart the service and the Koha box could "send" emails. Another step is to configure the DNS server adding an MX record for the Koha host associated to your "real" mail server and configure sendmail/postfix/qmail/exim/whatever to accept mail addresed to the Koha box, because it can not receive mails. For more information: http://untroubled.org/nullmailer/ http://untroubled.org/nullmailer/HOWTO http://www.debian-administration.org/articles/397 (little old) Regards bgk On Fri, Feb 5, 2010 at 9:39 AM, MJ Ray <mjr@phonecoop.coop> wrote:
"Emrys Minnig" <emrysminnig@varndean.co.uk>
Your concerns are valid. Installation is obviously not Koha-specific and I certainly didn't mean for my instructions to be adopted as canon; rather, I sought to answer the question at hand with explicit information. [...]
The question at hand was how to configure Sendmail or Postfix for Koha. Replying with how to build a qmail fork from source and not configure it for Koha doesn't seem helpful, no matter what we think of the relative merits of the three emailing systems.
Regards, -- MJ Ray (slef) Webmaster and LMS developer at | software www.software.coop http://mjr.towers.org.uk | .... co IMO only: see http://mjr.towers.org.uk/email.html | .... op
_______________________________________________ Koha mailing list Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
I defer to your wisdom. You are right, of course. To those individuals who have emailed to thank me for helping them set up a mail server for their Koha installation, I regret to inform you that you have been deceived. My advice was not helpful. In the future I shall refrain from providing such amateurish assistance, instead leaving it to the experts. Respectfully, Emrys ________________________________ From: MJ Ray [mailto:mjr@phonecoop.coop] Sent: Fri 05/02/2010 12:39 To: Emrys Minnig Cc: koha@lists.katipo.co.nz Subject: Re: [Koha] Email alert from Koha "Emrys Minnig" <emrysminnig@varndean.co.uk>
Your concerns are valid. Installation is obviously not Koha-specific and I certainly didn't mean for my instructions to be adopted as canon; rather, I sought to answer the question at hand with explicit information. [...]
The question at hand was how to configure Sendmail or Postfix for Koha. Replying with how to build a qmail fork from source and not configure it for Koha doesn't seem helpful, no matter what we think of the relative merits of the three emailing systems. Regards, -- MJ Ray (slef) Webmaster and LMS developer at | software www.software.coop http://mjr.towers.org.uk <http://mjr.towers.org.uk/> | .... co IMO only: see http://mjr.towers.org.uk/email.html | .... op
"Emrys Minnig" <emrysminnig@varndean.co.uk>
To those individuals who have emailed to thank me for helping them set up a mail server for their Koha installation, I regret to inform you that you have been deceived. My advice was not helpful. In the future I shall refrain from providing such amateurish assistance, instead leaving it to the experts.
That reminds me of "The Lurkers support me in e-mail They all think I'm great don't you know." http://barb.velvet.com/humor/lurkers.html ;-) Really, is it so unreasonable to want answers to be at least an attempt to answer the question as asked and contain some Koha content on a Koha email list? If anyone wants to install an email server on lenny, the command "sudo aptitude install mail-transport-agent" and answering the few dialogue boxes is much easier and safer than following that HOWTO and it will work for lots of past and future versions of debian too. Hope that helps, -- MJ Ray (slef) Webmaster and LMS developer at | software www.software.coop http://mjr.towers.org.uk | .... co IMO only: see http://mjr.towers.org.uk/email.html | .... op
participants (4)
-
Bernardo Gonzalez Kriegel -
Emrys Minnig -
MJ Ray -
Nicole Engard