Koha emailing not working
I have koha 4.18 version and trying to find a fix for Mailing through Koha I want the patron to email his cart to any Mail id he prefers. So i am tring to test this feature and while doing that, it gives me an error as "There is an error sending the cart" after clicking Send. When i checked the Opac-error.log file, this is the error i get. opac-sendbasket.pl: Error sending mail: Bad recipient <mail id of user>: 550 5.7.1 Unable to relay, referer: opac-sendbasket.pl: No valid recipient opac-sendbasket.pl: at /usr/share/koha/opac/cgi-bin/opac/opac-sendbasket.pl line 188 I configured Post fix with gmail as smtp to send and receive mails. It works fine if i echo a test mail and it reaches the recipient id. -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-emailing-not-working-tp5836791.html Sent from the Koha-general mailing list archive at Nabble.com.
2015-04-21 9:35 GMT+02:00 reachsuriya <reachsuriya@gmail.com>:
I have koha 4.18 version and trying to find a fix for Mailing through Koha
Are you sure the version is 4.18? This version of Koha does not exist (yet).
I want the patron to email his cart to any Mail id he prefers. So i am tring to test this feature and while doing that, it gives me an error as "There is an error sending the cart" after clicking Send. When i checked the Opac-error.log file, this is the error i get.
opac-sendbasket.pl: Error sending mail: Bad recipient <mail id of user>: 550 5.7.1 Unable to relay, referer: opac-sendbasket.pl: No valid recipient opac-sendbasket.pl: at /usr/share/koha/opac/cgi-bin/opac/opac-sendbasket.pl line 188
I configured Post fix with gmail as smtp to send and receive mails. It works fine if i echo a test mail and it reaches the recipient id.
-- View this message in context: http://koha.1045719.n5.nabble.com/Koha-emailing-not-working-tp5836791.html Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz http://lists.katipo.co.nz/mailman/listinfo/koha
Sorry.. its typo error.. 3.18.05.100 -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-emailing-not-working-tp5836791p583681... Sent from the Koha-general mailing list archive at Nabble.com.
One update on this.. The mail can be sent to internal domain ids. Not External recipients. It means, the domain to which the Koha machine is there, the mail is getting delivered to that domain mail ids. But if i enter external id, it give error Bad recipient. Also the received mail is with Basket file attachment and not the record details in mail. I dont want the cart to be sent as attachment with file extension iso2709. I need the mail to be in specific template with all book details. -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-emailing-not-working-tp5836791p583681... Sent from the Koha-general mailing list archive at Nabble.com.
Please Sir, Send us your $(cat main.cf | grep -v ^#). --Larry El martes, 21 de abril de 2015, reachsuriya <reachsuriya@gmail.com> escribió:
One update on this..
The mail can be sent to internal domain ids. Not External recipients.
It means, the domain to which the Koha machine is there, the mail is getting delivered to that domain mail ids.
But if i enter external id, it give error Bad recipient.
Also the received mail is with Basket file attachment and not the record details in mail. I dont want the cart to be sent as attachment with file extension iso2709. I need the mail to be in specific template with all book details.
-- View this message in context: http://koha.1045719.n5.nabble.com/Koha-emailing-not-working-tp5836791p583681... Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz <javascript:;> http://lists.katipo.co.nz/mailman/listinfo/koha
-- *-- Larry Letelier N.* *F: **+56 2 3205 2737* *F: **+56 9 7589 6842*
I hope this is postfix main.cf file? -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-emailing-not-working-tp5836791p583683... Sent from the Koha-general mailing list archive at Nabble.com.
Hi this is my postfix Main.cf file smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no append_dot_mydomain = no readme_directory = no smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtp_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination myhostname = testing.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = testing.com, DESK-0502, localhost.localdomain, localhost relayhost = [smtp.gmail.com]:587 mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_command = mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all inet_protocols = ipv4 home_mailbox = Maildir/ smtpd_sasl_local_domain = smtp_sasl_auth_enable = yes smtp_sasl_security_options = broken_sasl_auth_clients = yes smtpd_recipient_restrictions = smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_tls_CAfile = /etc/postfix/cacert.pem -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-emailing-not-working-tp5836791p583683... Sent from the Koha-general mailing list archive at Nabble.com.
I segreagated the issue now. Koha is not taking Postfix Config to send mails. Postfix is working sepearately from Koha. Postfix configured with GMAIL SMTP works fine and i can see the email Headers with this smtp details. KOHA still points to my local Domain Server SMTP. This is confimred through Sendmail.pm file in Perl5 directory. Now if i change this smtp server name to gmail, it gives me STATLS Required error. How to make sure that koha uses my Postfix configuration? -- View this message in context: http://koha.1045719.n5.nabble.com/Koha-emailing-not-working-tp5836791p583700... Sent from the Koha-general mailing list archive at Nabble.com.
Just you need say to your koha+postfix(local) machine, that send/deliver the emails transported to/by the postfix+gmailconf machine. Look at the 'man 5 transport' on your koha+postfix(local) machine. -- El miércoles, 22 de abril de 2015, reachsuriya <reachsuriya@gmail.com> escribió:
I segreagated the issue now.
Koha is not taking Postfix Config to send mails.
Postfix is working sepearately from Koha.
Postfix configured with GMAIL SMTP works fine and i can see the email Headers with this smtp details.
KOHA still points to my local Domain Server SMTP. This is confimred through Sendmail.pm file in Perl5 directory. Now if i change this smtp server name to gmail, it gives me STATLS Required error.
How to make sure that koha uses my Postfix configuration?
-- View this message in context: http://koha.1045719.n5.nabble.com/Koha-emailing-not-working-tp5836791p583700... Sent from the Koha-general mailing list archive at Nabble.com. _______________________________________________ Koha mailing list http://koha-community.org Koha@lists.katipo.co.nz <javascript:;> http://lists.katipo.co.nz/mailman/listinfo/koha
-- *-- Larry Letelier N.* *F: **+56 2 3205 2737* *F: **+56 9 7589 6842*
participants (3)
-
Jonathan Druart -
Larry Letelier -
reachsuriya