Friday, 22 February 2019

e-mail facility in koha

Apply following commands one-by-one in the terminal
1. sudo su
2. apt-get update

3. apt-get install postfix
    ( press 'OK' when asks in package configuration and for general type of mail configuration "no configuration" then OK)
  
4.cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf

5.apt-get install libsasl2-2

6. apt-get install libsasl2-modules

7. apt-get install ca-certificates

8. gedit /etc/postfix/main.cf

pleasse add the following lines at the bottom of the file.

relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
 
 
 9. gedit /etc/postfix/sasl_passwd

[smtp.gmail.com]:587    urgmailid@gmail.com:yourpassword #replace with your gmail id and password

10.chmod 400 /etc/postfix/sasl_passwd

11. postmap /etc/postfix/sasl_passwd

12. postalias hash:/etc/aliases

13 cat /etc/ssl/certs/thawte_Primary_Root_CA.pem >> /etc/postfix/cacert.pem

14 /etc/init.d/postfix restart

15 koha-email-enable library

No comments:

Post a Comment