Exim is a Mail Transfer Agent suitable (MTA) with Linux operating systems. Koha user can install Exim to send email notices to library users. Exim can be use instead of Postfix.
Follow the steps to install and configure Exim with Koha.
1. Create a Gmail Account![]() |
An email from Koha. |
Follow the steps to install and configure Exim with Koha.
Either use an existing gmail account or create a new one for the purpose send notices from Koha. Remember to enable Less secure apps in Gmail account. Otherwise, gmail prevent email send from a third party utility. Visit the following link to enable it (First log-into Gmail).
https://myaccount.google.com/security
2. Installation of Exim
Open a Terminal and apply following command to install Exim on Ubuntu Linux.
sudo su
apt-get install exim4-base exim4-config exim4-daemon-light libmailutils4 mailutils mutt
3. Configure Exim
Apply following command to configure Exim to use Gmail account.
dpkg-reconfigure exim4-config
Configuration window will open in terminal and reply for each question based on the screenshots below. Use Tab key for selection of button.
![]() |
Accept the default parameters. |
![]() |
Leave the field blank. |
![]() |
Leave the field blank. |
4. Save login credentials
leafpad /etc/exim4/passwd.client
Add following lines in the file. Save and close.
*.google.com:your_username@gmail.com:password_here
5. Update configuration file and restart exim
Apply following commands.
update-exim4.conf
Restart Exim
service exim4 restart
6. Send test mail from Exim
Change email name in the following command and copy paste in Terminal and press enter button.
echo 'My Test Text' | mail -s Testmail name@gmail.com
Check the destination mail to know the test mail arrived or not.
7. Enable email messaging in Koha
Apply following command in a Terminal.
koha-email-enable library
8. Prepare Koha to send email mesages
A). Enabled Enhanced Messaging preferences
Koha Administration > Global System Preferences > Patrons > Enhancedmessagingpreferences > Allow
B) Overdue Notice/Status triggers
Koha > Tools > Overdue Notice/status triggers
C) Enable messaging preferences for each patron categories
Koha > Administration > Patron categories >
References
https://wiki.debian.org/GmailAndExim4
http://www.fyzix.net/index.php?title=Installing_and_Configuring_Exim4_for_Gmail_SMTP_Relay
http://www.pontikis.net/blog/gmail-smarthost-exim4-debian