1 (edited by benwarrenwcs 2023-04-05 06:09:48)

Topic: *SOLVED*-- Send Error after Update to iredmail 1.6.2 & Roundcube 1.6.1

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.2
- Deployed with iRedMail Easy or the downloadable installer?downloadable installer
- Linux/BSD distribution name and version: Ubuntu 20.04.2 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx):NGinx
- Manage mail accounts with iRedAdmin-Pro?Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.

Portion of Roundcube Error Log: Pertinent info when email Send attempt:
Mar 21 17:02:56 mx roundcube: PHP Fatal error:  Uncaught Error: Call to undefined method Net_SMTP::starttls() in /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube_smtp.php:164
Mar 21 17:02:56 mx roundcube: Stack trace:
Mar 21 17:02:56 mx roundcube: #0 /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube.php(284): rcube_smtp->connect()
Mar 21 17:02:56 mx roundcube: #1 /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube.php(1783): rcube->smtp_init()
Mar 21 17:02:56 mx roundcube: #2 /opt/www/roundcubemail-1.4.11/program/include/rcmail_sendmail.php(436): rcube->deliver_message()
Mar 21 17:02:56 mx roundcube: #3 /opt/www/roundcubemail-1.4.11/program/actions/mail/send.php(245): rcmail_sendmail->deliver_message()
Mar 21 17:02:56 mx roundcube: #4 /opt/www/roundcubemail-1.4.11/program/include/rcmail.php(282): rcmail_action_mail_send->run()
Mar 21 17:02:56 mx roundcube: #5 /opt/www/roundcubemail-1.4.11/index.php(278): rcmail->action_handler()
Mar 21 17:02:56 mx roundcube: #6 {main}
Mar 21 17:02:56 mx roundcube:   thrown in /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube_smtp.php on line 164

====
After upgrade to iredmail 1.6.2, Roundcube webmail receives error "Connection Error (Failed to reach the server)" when attempting to send message.  I upgraded Roundcube to vesion 1.6.1 because I was behind a couple of updates of iredmail and didn't realize that during the upgrade that 1.6.1 is not supported in 1.6.2 version of iredmail. Is there any fix for this issue?
I did make a backup of the Roundcube folder but am unsure how to revert to previous version.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: *SOLVED*-- Send Error after Update to iredmail 1.6.2 & Roundcube 1.6.1

Did you check this short tutorial after upgraded to Roundcube 1.6.x?

Few changes are required if you upgrade Roundcube to 1.6.0. https://forum.iredmail.org/post84373.html#p84373

3

Re: *SOLVED*-- Send Error after Update to iredmail 1.6.2 & Roundcube 1.6.1

Thank you for the reply.  I had made the necessary changes (before asking for help) - re-verified settings, restarted server, error continues.

4

Re: *SOLVED*-- Send Error after Update to iredmail 1.6.2 & Roundcube 1.6.1

benwarrenwcs wrote:

"Connection Error (Failed to reach the server)" when attempting to send message.

Any error in /var/log/maillog when this issue happens?

5

Re: *SOLVED*-- Send Error after Update to iredmail 1.6.2 & Roundcube 1.6.1

Mail.log Error after Send mail attempt from Roundcube: 

Mar 31 11:38:17 mx roundcube: PHP Fatal error:  Uncaught Error: Call to undefined method Net_SMTP::starttls() in /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube_smtp.php:164
Mar 31 11:38:17 mx roundcube: Stack trace:
Mar 31 11:38:17 mx roundcube: #0 /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube.php(284): rcube_smtp->connect()
Mar 31 11:38:17 mx roundcube: #1 /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube.php(1783): rcube->smtp_init()
Mar 31 11:38:17 mx roundcube: #2 /opt/www/roundcubemail-1.4.11/program/include/rcmail_sendmail.php(436): rcube->deliver_message()
Mar 31 11:38:17 mx roundcube: #3 /opt/www/roundcubemail-1.4.11/program/actions/mail/send.php(245): rcmail_sendmail->deliver_message()
Mar 31 11:38:17 mx roundcube: #4 /opt/www/roundcubemail-1.4.11/program/include/rcmail.php(282): rcmail_action_mail_send->run()
Mar 31 11:38:17 mx roundcube: #5 /opt/www/roundcubemail-1.4.11/index.php(278): rcmail->action_handler()
Mar 31 11:38:17 mx roundcube: #6 {main}
Mar 31 11:38:17 mx roundcube:   thrown in /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube_smtp.php on line 164
Mar 31 11:38:17 mx postfix/submission/smtpd[7559]: lost connection after EHLO from mx.**ourmailservernamehere**.com[127.0.0.1]
Mar 31 11:38:17 mx postfix/submission/smtpd[7559]: disconnect from mx.**ourmailsevernamehere**.com[127.0.0.1] ehlo=1 commands=1

6

Re: *SOLVED*-- Send Error after Update to iredmail 1.6.2 & Roundcube 1.6.1

Looks like some PHP dependent packages were not up to date.
Did you remove /opt/www/roundcubemail/composer.json before upgrading Roundcube?
If you have this file, please remove it and upgrade again (from Roundcube 1.6.1 to 1.6.1).

7

Re: *SOLVED*-- Send Error after Update to iredmail 1.6.2 & Roundcube 1.6.1

Your suggestion resolved the issue.  Thank you very much!! You are a genius.

8

Re: *SOLVED*-- Send Error after Update to iredmail 1.6.2 & Roundcube 1.6.1

These suggestions did not help me. What else can be checked?

9

Re: *SOLVED*-- Send Error after Update to iredmail 1.6.2 & Roundcube 1.6.1

dedy wrote:

These suggestions did not help me. What else can be checked?

Please create a new forum topic for your own issue, with detailed description.