Email status changes failed from pending

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Email status changes failed from pending

Javed Sahil
Hello everyone!
        I want koha to send emails to patrons for circulation transactions
like check out, check in, overdue etc. I have installed postfix.
Everything is set I can send emails from commands line.

but in patron accounts email status is "pending".

When I use following commands.

1.    koha-shell library
2.    export PERL5LIB="/usr/share/koha/lib"
3.    export KOHA_CONF="/etc/koha/sites/library/koha-conf.xml"
4.    cd /usr/share/koha/bin/cronjobs

above all go fine, but when i use following command:

5.    ./process_message_queue.pl

this error message appears:

connect to localhost failed (Connection refused)
connect to localhost failed
connect to localhost failed (Connection refused) no (more) retries!
 at ./process_message_queue.pl line 66.


Then in patron accounts, email status changes to "failed".

Help Plz.



--
Regards,

Javed Shoukat

Management Trainee Officer (MTO)
Lahore University of
Management Sciences (LUMS),
Lahore.

Contact #: +92 300 6548748 <+92%20300%206548748>
Email: [hidden email]
_______________________________________________
Koha mailing list  http://koha-community.org
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha
Reply | Threaded
Open this post in threaded view
|

Re: Email status changes failed from pending

Mark Alexander
Excerpts from Javed Sahil's message of 2017-12-03 16:05:23 +0500:
> 5.    ./process_message_queue.pl
>
> this error message appears:
>
> connect to localhost failed (Connection refused)

This sounds to me like a postfix configuration problem.

What happens when you try this?

  telnet localhost 25

This should connect to the postfix SMTP server.

_______________________________________________
Koha mailing list  http://koha-community.org
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha
Reply | Threaded
Open this post in threaded view
|

Re: Email status changes failed from pending

Paul Hoffman
In reply to this post by Javed Sahil
On Sun, Dec 03, 2017 at 04:05:23PM +0500, Javed Sahil wrote:

> Hello everyone!
>         I want koha to send emails to patrons for circulation transactions
> like check out, check in, overdue etc. I have installed postfix.
> Everything is set I can send emails from commands line.
>
> but in patron accounts email status is "pending".
>
> When I use following commands.
>
> 1.    koha-shell library
> 2.    export PERL5LIB="/usr/share/koha/lib"
> 3.    export KOHA_CONF="/etc/koha/sites/library/koha-conf.xml"
> 4.    cd /usr/share/koha/bin/cronjobs
>
> above all go fine, but when i use following command:
>
> 5.    ./process_message_queue.pl
>
> this error message appears:
>
> connect to localhost failed (Connection refused)
> connect to localhost failed
> connect to localhost failed (Connection refused) no (more) retries!
>  at ./process_message_queue.pl line 66.

It sounds as though Postfix is not listening on port 25.  Please run the
following command (as root) and send us the output:

    netstat -tnlp | fgrep master

And please send us the output of this command, too:

    uname -a

Paul.

--
Paul Hoffman <[hidden email]>
Software Manager
Fenway Library Organization
550 Huntington Ave.
Boston, MA 02115
(617) 442-2384 (FLO main number)
_______________________________________________
Koha mailing list  http://koha-community.org
[hidden email]
https://lists.katipo.co.nz/mailman/listinfo/koha