Uploaded by Sisay Webshet

File

advertisement
some of keywords:groundwater management optimization vulnerability simulationā€optimization hydroeconomic models multiagent systems
done so far
sudo koha-email-enable entrolibrary
ou seem to have gone at it in the wrong order :-)
The first thing to setup and tested is the MTA (postfix in your case).
Install the mailutils package and check if you can send out emails
from the command line using the mail command.
Hint: If the above does not make sense google up "using postfix as a
gmail smarthost". There are plenty of tutorials available that should
get you past this hurdle.
Second: the "enable less secure app" is *NOT* for your recipients. It
is for *you*, specifically for the gmail account you are trying to
send out email from.
Third: send this gmail address as your library's email address in
your library details under Administration in Koha.
Once you have these in place, only then you should be moving to
koha-email-enable.
I hope you have replaced [libraryname] with your actual library
instance name when which you setup in the koha-create step.
BTW, if you name your instance correctly, on invoking
koha-email-enabled, it should show you "email enabled for
<your_instance_name>". If you make a mistake, it will tell you
"Unknown instance". For an already enabled instance it will show that
email is already enabled.
So "nothing happens" does not sound too good to me.
Once your have successfully navigated past this point, and your emails
are still not getting sent out, then check the mail log file for
possible errors. along with ensuring that your cron jobs are running
that typically send out the generated emails every 15 mins or so
(based on your cronjob config).
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
relayhost = smtp.serv.cgnet.com
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
myorigin = /etc/mailname
mydestination = cgnet.com
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = ipv4
default_transport = smtp
relay_transport = smtp
mynetworks = 127.0.0.0/8
sudo apt-get install postfix
Done.
/etc/aliases does not exist, creating it.
Postfix was not set up. Start with
cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf
. If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).
After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.
Processing triggers for libc-bin (2.23-0ubuntu10) ...
Processing triggers for systemd (229-4ubuntu21.10) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for ufw (0.35-0ubuntu2) .
sudo cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf
sudo apt-get install libsasl2-2
apt-get install libsasl2-modules
sudo apt-get install ca-certificates
all were installed before I don't know how?
swebshet@koha:~$ sudo nano /etc/postfix/main.cf
swebshet@koha:~$ sudo nano /etc/postfix/sasl_passwd
swebshet@koha:~$ sudo nano /etc/postfix/sasl_passwd
swebshet@koha:~$ sudo chmod 400 /etc/postfix/sasl_passwd
swebshet@koha:~$ sudo postmap /etc/postfix/sasl_passwd
swebshet@koha:~$ sudo postalias hash:/etc/aliases
swebshet@koha:~$ cat /etc/ssl/certs/Equifax_Secure_CA.pem >>/etc/postfix/cacert.pem
-bash: /etc/postfix/cacert.pem: Permission denied
swebshet@koha:~$ sudo cat /etc/ssl/certs/Equifax_Secure_CA.pem >>/etc/postfix/cacert.pem
-bash: /etc/postfix/cacert.pem: Permission denied
swebshet@koha:~$ sudo cat /etc/ssl/certs/Equifax_Secure_CA.pem >>/etc/postfix/cacert.pem -bash: /etc/postfix/cacert.pem: Permission denied
swebshet@koha:~$ sudo su
root@koha:/home/swebshet# cd
root@koha:~# cat /etc/ssl/certs/Equifax_Secure_CA.pem >>/etc/postfix/cacert.pem
cat: /etc/ssl/certs/Equifax_Secure_CA.pem: No such file or directory
root@koha:~# cat /etc/ssl/certs/thawte_Primary_Root_CA.pem >> /etc/postfix/cacert.pem
overdue notice reqired cheked yes
Check box onnl for the following.
Item due-
Advance notice 2
Item check-in--
Item checkout--
KohaAdminEmailAddress (modified) to swebashet@gmail.com
Entro_Library_librarian 1 overdue notice on the first tab
2 second and 3 for 3 red
Koha--> Tools --> Notices & Slips.
Go to this section
CirculationODUEOverdue Notice
root@koha:/usr/share/koha/bin/cronjobs# ./process_message_queue.pl OKay
sudo koha-rebuild-zebra entrolibrary okay
sudo koha-shell entrolibrary
./process_message_queue.pl works fine
This works for locale
export LANGUAGE=en_US.UTF-8
swebshet@koha:~$ export LC_ALL=en_US.UTF-8
swebshet@koha:~$ export LANG=en_US.UTF-8
swebshet@koha:~$ export LC_TYPE=en_US.UTF-8
swebshet@koha:~$ sudo koha-shell entrolibrary
Download