[Koha] Configuring smtp mail server to work with Koha

2015-10-30 Thread Pedro Amorim
Hello, I want to configure an smtp server so that Koha can use it to send e-mail notifications. I was expecting some sort of configuration file where I would configure the server, username, password and some other parameters but that is not the case. From my research I found 2 possible ways: 1) E

[Koha] Configuring smtp mail server to work with Koha

2017-12-06 Thread Javed Sahil
Hi Pedro, I am facing a problem with koha notifications similar to that you had been facing in the past, your message details at the end of this email. When I use following commands. 1.koha-shell library 2.export PERL5LIB="/usr/share/koha/lib" 3.export KOHA_CONF="/etc/koha/sites/li

Re: [Koha] Configuring smtp mail server to work with Koha

2015-10-30 Thread Pedro Amorim
Update: I have installed and configured postfix on my machine and tested it using: echo "This is the body of the email" | mail -s "This is the subject line" u...@example.com So I know it's well configured and my server is able to send mails. However, Koha still doesn't send any e-mail when I ma

Re: [Koha] Configuring smtp mail server to work with Koha

2015-10-30 Thread Michael Kuhn
Hi Pedro However, Koha still doesn't send any e-mail when I manually add a new patron. NOTE: 1) AutoEmailOpacUser is set to "send" in administration -> patrons; 2) All cronjobs were left as default. I also know they are running because my new records get indexed every 5 minutes. You might try

Re: [Koha] Configuring smtp mail server to work with Koha

2015-10-30 Thread Mark Tompsett
: [Koha] Configuring smtp mail server to work with Koha Update: I have installed and configured postfix on my machine and tested it using: echo "This is the body of the email" | mail -s "This is the subject line" u...@example.com So I know it's well configured and my ser

Re: [Koha] Configuring smtp mail server to work with Koha

2015-10-30 Thread Pedro Amorim
> Mark Tompsett > > -Original Message- From: Pedro Amorim > Sent: Friday, October 30, 2015 10:10 AM > To: koha@lists.katipo.co.nz > Subject: Re: [Koha] Configuring smtp mail server to work with Koha > > > Update: > > I have installed and configured postfix

Re: [Koha] Configuring smtp mail server to work with Koha

2015-10-30 Thread Galen Charlton
Hi, On Fri, Oct 30, 2015 at 10:40 AM, Pedro Amorim wrote: > connect to localhost failed (Connection refused) > connect to localhost failed > connect to localhost failed (Connection refused) no (more) retries! Koha expects there to be an MTA listening on port 25 on localhost. Since you've got pos

Re: [Koha] Configuring smtp mail server to work with Koha

2015-10-30 Thread Pedro Amorim
Hello Galen, Thank you for your reply. I have changed the Sendmail.pm file to point to smtp.gmail.com instead of localhost and am now receiving these errors: # koha-foreach --enabled --email /usr/share/koha/bin/cronjobs/ process_message_queue.pl -v koha: sending email message to patron: Admin at

Re: [Koha] Configuring smtp mail server to work with Koha

2015-10-30 Thread Pedro Amorim
Hello, I have solved the problem: Sendmail.pm needs to have smtp => 'localhost' and port => 25 and the e-mail notifications are now working. Thank you, Pedro Amorim 2015-10-30 14:23 GMT-01:00 Pedro Amorim : > Hello Galen, > > Thank you for your reply. > I have changed the Sendmail.pm file to p

Re: [Koha] Configuring smtp mail server to work with Koha

2017-12-06 Thread Paul Hoffman
Javed, Here's what I would do. Note that the two export commands (setting the environment variables PERL5LIB and KOHA_CONF) are unnecessary -- koha-shell sets them for you. $ koha-shell library $ cd /usr/share/koha/bin/cronjobs $ perl -d process_message_queue.pl This puts you in the Perl debu

Re: [Koha] Configuring smtp mail server to work with Koha

2017-12-06 Thread Paul Hoffman
Better yet, do this in the Perl debugger: c C4::Letters::SendQueuedMessages c sendmail $mailcfg{'debug'} = 1 c That should produce much less verbose debugging output. Paul. On Wed, Dec 06, 2017 at 09:39:09AM -0500, Paul Hoffman wrote: > Javed, > > Here's what I would do. Note that the two exp

Re: [Koha] Configuring smtp mail server to work with Koha

2017-12-06 Thread Paul Hoffman
Javed, (Please reply to my message rather than starting a new thread.) Could you please repeat this, but with a somewhat different sequence of commands? c C4::Letters::SendQueuedMessages c sendmail x \%mailcfg $mailcfg{'debug'} = 2 r Then post all of the output to the list.