-
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
Roundcube sees SMTP 220 as an error response instead of OK, after sending STARTTLS #7816
Comments
running #1.4.10 |
I saw that in the past. The problem is not with 220, which is perfectly fine. The problem is with TLS negotiation. Is there no other error in log? One of the reasons that it fails might be a difference in configured/allowed SSL?TLS protocol versions between PHP and SMTP server. There's not much we can do about it from our side. You may try setting crypto_method via |
found the root of the issue. current setup now: $config['smtp_timeout'] = 60; Issue I found is that after the ssl config options above, below it had another line as follows: which I had to comment out to get SSL working. |
Hi, |
I had the exact same issue and solved it the same way, although I think that's a hack. My roundcube instance is also from an upgraded Debian system The only "220" I see in the transcript is this:
Maybe this line gets misinterpreted? |
Yeah, it looks like that. And the "solution" feels very hacky. |
This is the full transcript. I removed the milters' logs to reduce the complexity
|
I had this issue with a FreeBSD13.2 -> FreeBDB14.0 upgrade in May 2024, which included php80->php82. Several php82 packages had to be installed manually. The system was working fine before upgrade, but after it wouldn't display message previews or send smtp mail. This config
got this smtp log response when sending mail
Then I tried without
and it's working fine to send SMTP messages again. |
Hello! This bug should be fixed. I spent some hours to investigate with uncle google, why my roundcube installation can't send any mails and showing SMTP error 220. I use AlmaLinux 9.4 and sendmail as MTA/MSA Some there is hardly wrong. Best |
It looks like certificate validation problem with misleading error message. pear/Net_SMTP#83. There's not much we can do here. |
SMTP code 220 is perfectly acceptable and generally means the mail server is ready to continue but roundcube sees this as an error code and displays authentication error and uses QUIT after STARTTLS was accepted.
Example:
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Connecting to tls://***REDACTED***:587...
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Recv: 220 ***REDACTED*** ESMTP Postfix (3.3.1)
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Send: EHLO ***REDACTED***
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Recv: 250-***REDACTED***
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Recv: 250-PIPELINING
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Recv: 250-SIZE 10240000
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Recv: 250-VRFY
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Recv: 250-ETRN
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Recv: 250-STARTTLS
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Recv: 250-ENHANCEDSTATUSCODES
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Recv: 250-8BITMIME
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Recv: 250-DSN
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Recv: 250 SMTPUTF8
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Send: STARTTLS
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Recv: 220 2.0.0 Ready to start TLS
[05-Jan-2021 23:35:41 +0000]: <knedr1j4> Send: QUIT
The text was updated successfully, but these errors were encountered: