1 =============================
2 Installation Guide for Configuring a Koha Server to Use a Gmail Account as its SMTP Server
3 =============================
5 Copyright (C) 2010 Foundations Bible College (http://www.foundations.edu)
7 Author: Chris Nighswonger (cnighswonger AT foundations DOT edu
9 Feedback/bug reports: Koha Developer's List:
10 http://lists.koha.org/mailman/listinfo/koha-devel
12 This document last modified: 13 February 2010
14 Configuration Instructions
15 =============================
17 To use your gmail account as an SMTP server you will need to execute the following from a shell prompt.
19 (These steps are taken from http://jonspriggs.posterous.com/use-gmails-smtp-gateway-using-the-command-lin)
21 sudo apt-get install openssl xinetd
23 sudo tee /usr/bin/gmail-smtp <<EOF >/dev/null
25 # Thanks to http://ubuntuforums.org/showthread.php?t=918335 for this install guide
26 /usr/bin/openssl s_client -connect smtp.gmail.com:465 -quiet 2>/dev/null
28 sudo chmod +x /usr/bin/gmail-smtp
30 sudo tee /etc/xinetd.d/gmail-smtp <<EOF >/dev/null
32 # description: Gmail SMTP wrapper for clients without SSL support
33 # Thanks to http://ubuntuforums.org/showthread.php?t=918335 for this install guide
43 server = /usr/bin/gmail-smtp
47 sudo /etc/init.d/xinetd reload
49 Edit Mail/Sendmail.pm and set the port to 10025. (Note: This file will be located where ever your Perl libraries are.)
51 Script Setup Instructions
52 =============================
54 After successfully executing the above steps, you will need to run the process_message_queue.pl script with the
57 perl process_message_queue.pl -u librarian@foo.tld -p supersecret -m LOGIN
59 This, of course, assumes that you have all other scripts in place and functional to generate notices.
62 =============================
64 NOTE: In order to debug problems, you can set the debug level in Mail/Sendmail.pm to 11 which will give plenty of