-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
smtp auth error after upgrade #8639
Comments
Did you adjust your config.php? https://github.com/roundcube/roundcubemail/releases/tag/1.6.0 There are some breaking changes, you will need to fix that first. |
no i did not touch anything because the installer (updater) told me, it would do that for me. i answered 'y' in the dialog. edit: just checked the old config and the new generated config, there is no smtp_server nor smtp_host in the new config. i'll try to see if that fixes it. then its a bug in the upgrade-function. edit 2: i added that entry in the config, now i get that error in the log: [31-Jul-2022 09:49:11 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined method Net_SMTP::starttls() in /var/lib/roundcube/program/lib/Roundcube/rcube_smtp.php:164 whats wierd is, with 1.5.3 it was working like a charm. i also installed php-net-smtp for testing, did not made any difference (apt-get install) |
You might need more recent Net_SMTP version for Roundcube 1.6. Also make sure you changed the config appropriately:
|
is there more information about which version exactly is needed? it worked with 1.5.3, so if that changed, i would highly recommend to point that out in the README or UPGRADING, because then its broken with current debian stable. |
https://pear.php.net/package/Net_SMTP/download/1.10.0 |
the latest version available in debian stable is php-net-smtp 1.9.0-1 |
The package is needed in both versions (1.5 or 1.6), there is call to that new method You can try to install pecl packages manually or something like docker. |
it worked without that package in 1.5.3 |
AFAIK it was always needed. Tag 1.5.0
Did you checked the vendor folder? |
i am noob with php "administration/deployment", i have no idea of pear and so on, only basic php programming. |
Did you install the SMTP package from debian? If so, may be that the problem, since it may be using the wrong version. |
i installed it after the error indicated that package is missing. i removed it now, so its the same state i was before. but that does not fix anything, because the vendor/pear/smtp thingen is still the old one. |
You need to download the complete package to get the |
i downloaded the complete package do i have to manually run pear/whatever to update the vendor packages? |
I don't think so... I suggest you first try a clean install on another VM with the same debian version, just to make sure is not on your current install. Since the required libs are bundled on the complete package. I'm running it on docker, so I'm not having this problem. I don't think I can help more than that... []'s |
i always download the complete package and then do a ./bin/installto /var/lib/roundcube, confirm the upgrade and keep going. |
The latest version 1.6.0 already comes with the required Net_SMTP version 1.10. The clean install is just to avoid mess with your current install before you figure out what is going on. |
in that case the updater does not overwrite the vendor classes, thats why it fails. edit: i can confirm that works. i was able to send an email now. so there are 2 problems:
|
I think you should do it manually: But as I said, I'm using it on docker. []'s |
makes absolutely no sense if there is an update script that (should) do everything. as it does not, its a bug. |
closing this and separate the 2 bugs |
i had 1.5.3 running fine, then upgraded to 1.6.0, now i get an error. the error log contains:
[30-Jul-2022 16:19:01 +0200]: PHP Error: SMTP server does not support authentication (POST /?_task=mail&_unlock=loading1659190741401&_framed=1&_action=send)
[30-Jul-2022 16:19:01 +0200]: SMTP Error: Authentication failure: xxx.de
PIPELINING
SIZE 100000000
ETRN
STARTTLS
ENHANCEDSTATUSCODES
8BITMIME
DSN
SMTPUTF8
CHUNKING (Code: 250) in /var/lib/roundcube/program/lib/Roundcube/rcube.php on line 1795 (POST /?_task=mail&_unlock=loading1659190741401&_framed=1&_action=send)
debian stable
edit:
as i dont have time to dig further into this (and must have the web client working), i moved the old folder (/var/lib/roundcube_backup, containing 1.5.3) back to /var/lib/roundcube and moved the broken one (1.6.0) to /var/lib/roundcube_broken. works again now. so something seems to be broken in migrating from 1.5.3->1.6.0
The text was updated successfully, but these errors were encountered: