1 (edited by mikek 2024-01-21 06:50:18)

Topic: *SOLVED* after upgrading roundcube, send error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version: 1.6.8
- Deployed with the downloadable installer.
- Ubuntu 20.04.6 LTS
- MySQL
- Web server: Nginx
- iRedAdmin-Pro
====

I upgraded everything: IREDMAIL to 1.6.8, netdata to 1.44.1, mlmmjadmin to 3.1.9, iredapd to 5.3.3, iredadmin-pro to 5.5

I did not remove composer.json before upgrading RoundCube. I did not see this instruction at the time.
Now I get Error when sending: Connection Error (Failed to reach the server)!
Can I just remove the composer.json file and upgrade again? Or is there a simpler solution.
Can I fix the current installation? I don't want to restore the backup unless I have to.

Roundcube Webmail 1.6.5
Installed plugins
filesystem_attachments    1.0    GPL-3.0+   
jqueryui    1.13.2    GPL-3.0+   
managesieve    9.4    GPL-3.0+   
markasjunk    2.0    GPL-3.0+   
password    5.3    GPL-3.0+   
persistent_login    5.2.0    GPL-3.0+

Mail Log:
Jan 20 14:26:06 mail roundcube: PHP Fatal error:  Uncaught Error: Call to undefined method Net_SMTP::starttls() in /opt/www/roundcubemail-1.4.7/program/lib/Roundcube/rcube_smtp.php:164
Jan 20 14:26:06 mail roundcube: Stack trace:
Jan 20 14:26:06 mail roundcube: #0 /opt/www/roundcubemail-1.4.7/program/lib/Roundcube/rcube.php(284): rcube_smtp->connect()
Jan 20 14:26:06 mail roundcube: #1 /opt/www/roundcubemail-1.4.7/program/lib/Roundcube/rcube.php(1783): rcube->smtp_init()
Jan 20 14:26:06 mail roundcube: #2 /opt/www/roundcubemail-1.4.7/program/include/rcmail_sendmail.php(436): rcube->deliver_message()
Jan 20 14:26:06 mail roundcube: #3 /opt/www/roundcubemail-1.4.7/program/actions/mail/send.php(245): rcmail_sendmail->deliver_message()
Jan 20 14:26:06 mail roundcube: #4 /opt/www/roundcubemail-1.4.7/program/include/rcmail.php(282): rcmail_action_mail_send->run()
Jan 20 14:26:06 mail roundcube: #5 /opt/www/roundcubemail-1.4.7/index.php(278): rcmail->action_handler()
Jan 20 14:26:06 mail roundcube: #6 {main}
Jan 20 14:26:06 mail roundcube:   thrown in /opt/www/roundcubemail-1.4.7/program/lib/Roundcube/rcube_smtp.php on line 164
Jan 20 14:26:06 mail postfix/submission/smtpd[163433]: lost connection after EHLO from localhost[127.0.0.1]
Jan 20 14:26:06 mail postfix/submission/smtpd[163433]: disconnect from localhost[127.0.0.1] ehlo=1 commands=1

TLS Issue?

----

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

2

Re: *SOLVED* after upgrading roundcube, send error

SOLVED:
In config.inc.php

changed:
$config['smtp_host'] = 'tls://127.0.0.1:587';

TO:
$config['smtp_host'] = 'ssl://127.0.0.1';
$config['smtp_port'] = 465;

TRIED but DIDN'T WORK:
$config['smtp_host'] = 'ssl://127.0.0.1:465';

3

Re: *SOLVED* after upgrading roundcube, send error

mikek wrote:

TRIED but DIDN'T WORK:
$config['smtp_host'] = 'ssl://127.0.0.1:465';

Your Postfix must listen on port 465 too.

4

Re: *SOLVED* after upgrading roundcube, send error

BUT this did work on port 465:
$config['smtp_host'] = 'ssl://127.0.0.1';
$config['smtp_port'] = 465;

I had to put smtp_port on it's own config line.