[Bug 37207] New: SMTP Services Failing Except Gmail on Koha Version 24.05
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37207 Bug ID: 37207 Summary: SMTP Services Failing Except Gmail on Koha Version 24.05 Change sponsored?: --- Product: Koha Version: 24.05 Hardware: Other OS: Linux Status: NEW Severity: critical Priority: P5 - low Component: Notices Assignee: koha-bugs@lists.koha-community.org Reporter: aungmo@gmail.com QA Contact: testopia@bugs.koha-community.org Description: I am experiencing issues with configuring SMTP services other than Gmail on Koha version 24.05. Despite extensive troubleshooting and ensuring all necessary configurations, only Gmail SMTP service is working. Other SMTP services, such as Brebo, Mailgun, Mailer, Mailjet and Zoho, fail to send emails. Below are the details of my setup and the steps taken to resolve the issue: Steps to Reproduce: Environment: Koha Version: 24.05 Deployment: Docker Container SMTP Services Tested: Brebo, Mailgun, Mailer, Zoho Working SMTP Service: Gmail OS: Debian-based container Configuration: SMTP configurations were updated in koha-conf.xml for each service. SMTP configurations included server, port, username, password, and SSL/TLS settings. Tests conducted with and without SSL/TLS (ports 465 and 587). Troubleshooting Steps: Verified DNS resolution and network connectivity to SMTP servers from within the container. Successfully established TCP connections to SMTP servers using telnet and openssl s_client. Authenticated and sent emails using swaks outside the container. Verified no firewall restrictions on the host or container level. Verified correct credentials and settings with each SMTP service provider. Observations: Gmail works flawlessly with the same configurations. Other SMTP services fail during the authentication phase or email sending phase with errors such as: unable to establish SMTP connection to (smtp-relay.brevo.com) port 587 Trace begun at /usr/share/perl5/Email/Sender/Transport/SMTP.pm line 232 Email::Sender::Transport::SMTP::_throw('Email::Sender::Transport::SMTP::Persistent=HASH(0x564d3cb48158)', 'unable to establish SMTP connection to (smtp-relay.brevo.com) port 587') called at /usr/share/perl5/Email/Sender/Transport/SMTP.pm line 175 Email::Sender::Transport::SMTP::_smtp_client('Email::Sender::Transport::SMTP::Persistent=HASH(0x564d3cb48158)') called at /usr/share/perl5/Email/Sender/Transport/SMTP/Persistent.pm line 32 Email::Sender::Transport::SMTP::Persistent::_smtp_client('Email::Sender::Transport::SMTP::Persistent=HASH(0x564d3cb48158)') called at /usr/share/perl5/Email/Sender/Transport/SMTP.pm line 241 Email::Sender::Transport::SMTP::send_email('Email::Sender::Transport::SMTP::Persistent=HASH(0x564d3cb48158)', 'Email::Abstract=ARRAY(0x564d3c5e0868)', 'HASH(0x564d3cb6baf0)') called at /usr/share/perl5/Email/Sender/Role/CommonSending.pm line 45 Email::Sender::Role::CommonSending::try {...} at /usr/share/perl5/Try/Tiny.pm line 102 eval {...} at /usr/share/perl5/Try/Tiny.pm line 93 Try::Tiny::try('CODE(0x564d3cb7dbc8)', 'Try::Tiny::Catch=REF(0x564d3cb79f00)') called at /usr/share/perl5/Email/Sender/Role/CommonSending.pm line 58 Email::Sender::Role::CommonSending::send('Email::Sender::Transport::SMTP::Persistent=HASH(0x564d3cb48158)', 'Email::Abstract=ARRAY(0x564d3c5e0868)', 'HASH(0x564d3cb7e1a8)') called at /usr/share/perl5/Email/Sender/Simple.pm line 119 Email::Sender::Simple::send_email('Email::Sender::Simple', 'Email::Abstract=ARRAY(0x564d3c5e0868)', 'HASH(0x564d3cb6be08)') called at /usr/share/perl5/Email/Sender/Role/CommonSending.pm line 45 Email::Sender::Role::CommonSending::try {...} at /usr/share/perl5/Try/Tiny.pm line 102 eval {...} at /usr/share/perl5/Try/Tiny.pm line 93 Try::Tiny::try('CODE(0x564d3cb79618)', 'Try::Tiny::Catch=REF(0x564d3cb6c4b0)') called at /usr/share/perl5/Email/Sender/Role/CommonSending.pm line 58 Email::Sender::Role::CommonSending::send('Email::Sender::Simple', 'Email::MIME=HASH(0x564d3c5cd2b0)', 'HASH(0x564d3c57d7a8)') called at /usr/share/perl5/Email/Stuffer.pm line 784 Email::Stuffer::send_or_die('Koha::Email=HASH(0x564d3c595b58)', 'HASH(0x564d3cb6c330)') called at /usr/share/koha/lib/Koha/Email.pm line 237 Koha::Email::send_or_die('Koha::Email=HASH(0x564d3c595b58)', 'HASH(0x564d3cb6c330)') called at /usr/share/koha/lib/C4/Letters.pm line 1534 C4::Letters::try {...} at /usr/share/perl5/Try/Tiny.pm line 100 eval {...} at /usr/share/perl5/Try/Tiny.pm line 93 Try::Tiny::try('CODE(0x564d3c5cd088)', 'Try::Tiny::Catch=REF(0x564d3c581a78)') called at /usr/share/koha/lib/C4/Letters.pm line 1556 C4::Letters::_send_message_by_email('HASH(0x564d3c5507f0)', undef, undef, 'LOGIN', 'HASH(0x564d32a01fb0)') called at /usr/share/koha/lib/C4/Letters.pm line 1039 C4::Letters::SendQueuedMessages('HASH(0x564d329d8860)') called at /usr/share/koha/bin/cronjobs/process_message_queue.pl line 120 at /usr/share/koha/lib/C4/Letters.pm line 1556. Use of uninitialized value $Mail::Sendmail::error in string at /usr/share/koha/lib/C4/Letters.pm line 1554. at /usr/share/koha/lib/C4/Letters.pm line 1556. Expected Result: Emails should be sent successfully using any configured SMTP service without errors. Actual Result: Only Gmail SMTP service is working. All other SMTP services fail with authentication or connection errors. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37207 --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- I think this is not a bug, but more of a support request suitable for the mailing list or the Mattermost chat. The error is: 'unable to establish SMTP connection to (smtp-relay.brevo.com) port 587' Have you checked if the port of the other services are different to Google and if they are maybe blocked? -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37207 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37207 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |INVALID -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37207 --- Comment #2 from alexaung <aungmo@gmail.com> --- I have checked and confirmed that the port for the other services is the same as Google (port 587). All these services are working on my local machine, and I can even send emails on the same server as Koha using swaks. Therefore, I believe the issue is not related to port blocking. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org