1 (edited by haveagoodtime 2023-05-24 15:39:22)

Topic: problems with roundcube 1.6.1

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.3
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version:  debian 11
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  mariadb
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Updated to roundcube 1.6.1 with the complete package from whatever the version in iredmail 1.6.1 was, i think 1.5.3 during my update to iredmail 1.6.3. After upgrading, I cannot send or receive emails with roundcube, roundcube is totally severed from my mail server and does not connect to it anymore. (Connection Error. Failed to reach the server!) The mail server itself is functional and I can send and receive emails, just not from roundcube. The problem seems to lay here during the upgrade of roundcube:

ATTENTION: Update dependencies by running `php composer.phar update --no-dev`

I have no idea how to do that. And please note, I did install the complete roundcube package.

Error log of what goes on with roundcube:
May 24 06:33:34 mail postfix/submission/smtpd[199181]: connect from mail.domain.tld[127.0.0.1]
May 24 06:33:34 mail 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
May 24 06:33:34 mail roundcube: Stack trace:
May 24 06:33:34 mail roundcube: #0 /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube.php(284): rcube_smtp->connect()
May 24 06:33:34 mail roundcube: #1 /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube.php(1783): rcube->smtp_init()
May 24 06:33:34 mail roundcube: #2 /opt/www/roundcubemail-1.4.11/program/include/rcmail_sendmail.php(436): rcube->deliver_message()
May 24 06:33:34 mail roundcube: #3 /opt/www/roundcubemail-1.4.11/program/actions/mail/send.php(245): rcmail_sendmail->deliver_message()
May 24 06:33:34 mail roundcube: #4 /opt/www/roundcubemail-1.4.11/program/include/rcmail.php(282): rcmail_action_mail_send->run()
May 24 06:33:34 mail roundcube: #5 /opt/www/roundcubemail-1.4.11/index.php(278): rcmail->action_handler()
May 24 06:33:34 mail roundcube: #6 {main}
May 24 06:33:34 mail roundcube:   thrown in /opt/www/roundcubemail-1.4.11/program/lib/Roundcube/rcube_smtp.php on line 164
May 24 06:33:34 mail postfix/submission/smtpd[199181]: lost connection after EHLO from mail.domain.tld[127.0.0.1]
May 24 06:33:34 mail postfix/submission/smtpd[199181]: disconnect from mail.domain.tld[127.0.0.1] ehlo=1 commands=1

In /opt/www/roundcubemail/config/config.inc.php i see it moved my config file from 1.5.3 to .old and created a new one to use and appended to it.

Update: I fixed it. I had to go into /opt/www/roundcubemail/ and get rid of composer.json there is a bug in the roundcube complete installer. Now roundcube works.
See here: https://github.com/roundcube/roundcubemail/issues/8642

----

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

2

Re: problems with roundcube 1.6.1

Few changes are required if you upgrade from Roundcube 1.5.x:
https://forum.iredmail.org/post84373.html#p84373

3 (edited by haveagoodtime 2023-05-25 01:16:25)

Re: problems with roundcube 1.6.1

ZhangHuangbin wrote:

Few changes are required if you upgrade from Roundcube 1.5.x:
https://forum.iredmail.org/post84373.html#p84373

thanks zhang. i see you updated the tutorial. But in my case I did try what is in the tutorial during my troubleshooting yesterday and tried running the installer again and roundcube still did not work. The installer actually made those changes for me, it seems to know how to reformat the smtp/imap host and port to the new syntax on it's own. It doesn't modify manage_sieve's config to the changes in the upgrade tutorial but sieve still functions with the old syntax, my filters work and i made a new one to be sure. The problem is the complete package for roundcube 1.6.x will not update what's in the vendor folder if it sees a composer.json file in the user's roundcube directory. The issue is the vendor package net_smtp does not get updated. it's a bug in the roundcube installer, maybe they'll fix it. If the file is moved renamed deleted etc the installer works without needing any additional user changes besides asking if the user wants to update to the new syntax for their config file or leave it as is and do it on their own. the old config.inc.php is backed up by the installer as config.old.php so I think it's safe to let it try to reconfigure the file itself. There isn't a need to update with composer if the .json file is deleted.