Bug 1217496

Summary: Roundcube smtp error() due to obsolete configuration option.
Product: [openSUSE] openSUSE Distribution Reporter: Joseph Acquisto <joea>
Component: OtherAssignee: Lars Vogdt <lars.vogdt>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: aj, joea, lars.vogdt
Version: Leap 15.5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Joseph Acquisto 2023-11-25 22:06:49 UTC
Installed Roundcube 1.6.4 via YAST.  Seemed to work well after basic configuration.   Later found sending email via Roundcube configured for port 25
would fail.   Enabled debug and confirmed Roundcube was attempting to communicate to SMTP via port 587.

Relevant Configuration (being ignored):

/etc/roundcubemail/config.inc.php
//$config['smtp_port'] = 587;
$config['smtp_port'] = 25;

Cause and Resolution per Roundcube discussion list:
------
"The 'smtp_port' option was removed in 1.6.0 . . . May be the issue is a partially updated config? From the 1.6.0 release notes:

[Quote]
    SMTP:
    - renamed smtp_server to smtp_host
    - removed smtp_port option (non-standard port can be set via smtp_host)
    - set "localhost:587" as a default for smtp_host
[/Quote]

Make sure you don't have an old 'smtp_server' option in your config.inc.php instead it should have `$config['smtp_host'] = 'localhost:25';'"
-------

Per my own testing, altering /etc/roundcubemail/config.inc.php 
as suggested resolved the issue.
Comment 1 Andreas Stieger 2023-11-26 08:34:20 UTC
assigning to package maintainer
Comment 2 Lars Vogdt 2024-01-26 13:34:12 UTC
Can you please give some background information?

What is the exact package name? (rpm -q)

From which repository does this package come from? (rpm -qi | grep Distribution)
Comment 3 Joseph Acquisto 2024-01-26 13:54:51 UTC
As requested - Hope this helps.

~# rpm -q dovecot23
dovecot23-2.3.21-lp155.128.1.x86_64

~# rpm -qi dovecot23 | grep Distribution
Distribution: server:mail / 15.5
flitch:/home/joea #
Comment 4 Joseph Acquisto 2024-01-26 13:56:33 UTC
As requested, hope this helps.

~# rpm -q dovecot23
dovecot23-2.3.21-lp155.128.1.x86_64

~# rpm -qi dovecot23 | grep Distribution
Distribution: server:mail / 15.5
Comment 5 Lars Vogdt 2024-01-26 13:58:07 UTC
Thanks. But the Bug talks about Roundcube. If the issue is with dovecot23, we need to re-assign. Can you please re-check?
Comment 6 Joseph Acquisto 2024-01-26 16:57:46 UTC
Sorry for the confusion.  

~# rpm -q roundcubemail
roundcubemail-1.6.4-bp155.2.6.1.noarch

~# rpm -qi roundcubemail | grep Distribution
Distribution: SUSE Linux Enterprise 15
Comment 7 Lars Vogdt 2024-01-26 20:00:05 UTC
Thanks for the feedback.

I checked the package (available in openSUSE:Backports:SLE-15-SP5:Update/roundcubemail aka https://build.opensuse.org/package/show/openSUSE:Maintenance:18166/roundcubemail.openSUSE_Backports_SLE-15-SP5_Update ) and also the released binary RPM (available in http://download.opensuse.org/update/leap/15.5/backports/noarch/roundcubemail-1.6.4-bp155.2.6.1.noarch.rpm ).

What wonders me: we ship the official config.php(.sample), that is also provided by Roundcube upstream. There is no 'smtp_port' config option in the whole config sub-directory. 

My suspicion would be an upgraded Roundcubemail package. But you are talking about a new installation via Yast, so I have currently not a single idea how this can happen. Can you please verify that this is really a fresh installation and not an update/upgrade?
Comment 8 Joseph Acquisto 2024-01-26 22:00:31 UTC
I'm certain it was a fresh install via YAST.  

Please allow me a few days to install a fresh 15.5 on a new VM and install those packages and look it over.
Comment 9 Joseph Acquisto 2024-01-27 23:38:24 UTC
Checked a fresh install of LEAP 15.5, actually about 3 days old, dovecot and roundcube.

/etc/roundcubemail/config.inc.php appears correct "out of the box".

The /etc/roundcubemail/config.inc.php in my installation contains different and less verbose comments than the "fresh" one.  

Further /etc/roundcubemail/config.inc.php.sample, on my machine, very closely, perhaps exactly, compares to the fresh install and differs from  /etc/roundcubemail/config.inc.php on my machine as in the former citation.

So, I must conclude in agreement with you, that this is a case of either ID1oT syndrome, or, PEBKAC syndrome.

I understand it to be quite common, virtually identical in meaning and occur with greater frequency as the meat sacks and neural net content age out. 

Must have copied and pasted some example from earlier versions of roundcube found in the wilderness.   I really should have checked against the sample before raising this (so-called) bug.

Sorry for the inconvenience.  And the poor attempts at humor.

joe a.
Comment 10 Lars Vogdt 2024-01-29 12:39:13 UTC
No worries. Something similar happens to me often enough as well  ;-)

I'm just happy that we could clarify the problem quickly without a real problem. 
Enjoy your Roundcube installation!
Comment 11 Lars Vogdt 2024-01-29 12:39:27 UTC
Closing.