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
Can’t send emails in a new install: “Could not send message: Could not open secure TLS connection to the server” #3368
Comments
The Nextcloud mail app offers an extensive logging system to make it easier identifying and tracking down bugs. Please enable debug mode and set the log level to debug in your admin settings. Then, try to reproduce your issue and take another look at |
Wow, the nextcloud log threw like 400 lines after this. I activated the debug mode and set its level to debug, and then I just logged in to nextcloud, went to the mail app and tried to send an email to my gmail address. This is what I got from the logs: I tried to read throgh it but I'm not sure what I'm looking for actually. |
Strange. Is the server that slow? You could try increasing the timeout: https://github.com/nextcloud/mail/blob/master/doc/admin.md#smtp-timeout and set it to 20 or so. |
Still the same error. But only this showed up (in nextcloud.log):
And nothing in the hord_smtp log I'm using a VPS with a single 2.6 GHz processor and 2048 MB of RAM (is it too bad?) |
I'm currently out of ideas on what might be going wrong there. Does the issue persist? |
i think the mail app does only not support tls 1.3 via SMTP. I connected successfully if i remove the "!TLS1.2" from the Postfix config option. |
We don't have own own TLS implementation. This is handled by php. |
After some research this patch allows the TLS1.3 SMTP connection to the server. |
Huh, interesting. Guess we should submit this upstream. Do you or shall I? :) |
please do it |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Expected behavior
I installed Nextcloud with Postfix + Dovecot + Rspamd + PostgreSQL in a Debian 10 VPS according to this guide. And now everything works until I try to send an email (I can receive emails just fine thoug).
Actual behavior
Then when I try to send an email it shows Error 500. And the log show this:
Then I tried adding this to config.php according to a note on the changelogs:
'app.mail.verify-tls-peer' => false,
But it didn't work either:
I also verified every setup option mentioned in that guide just in case I made some typo or anything, but everything seems right.
Mail app
Mail app version: (see apps admin page, e.g. 0.5.3)
1.4.1
Mailserver or service: (e.g. Outlook, Yahoo, Gmail, Exchange,...)
The webmail version ("mail" app in Nextcloud)
Server configuration
Operating system: (e.g. Debian 8)
Debian GNU/Linux 10 (Buster)
Web server: (e.g. Apache, Nginx,...)
Apache
Database: (e.g. MariaDB, SQLite or PostgreSQL)
PostgreSQL
PHP version: (e.g. 7.0)
PHP 7.3.19-1~deb10u1 (cli)
Nextcloud Version: (see admin page, e.g. 13.0.2)
18.0.6
Client configuration
Browser: (e.g. Firefox 48)
Brave Browser
Version 1.10.97 Chromium: 83.0.4103.116 (Official Build) (64-bit)
Operating system: (e.g. Arch Linux)
Linux Mint Debian Edition 4
The text was updated successfully, but these errors were encountered: