-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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 #11219
Comments
I think your mailprogramm uses stuff like autoconf/autodiscovery.domain or other auto config. Use the domain from the certificate. |
Thanks for reporting issues back to Nextcloud 👍 This is the issue tracker of Nextcloud, if you have any support question please check out https://nextcloud.com/support This looks more like a configuration issue than a software issue. Please read carefully what @xf- suggested. I think he gave you a good hint. Example:
Your hosting provider setup autoconf.mydomain.com with information for airmail or apple mail. Your client read this information and connects than to provider.com (since the mailserver certificate is only valid for provider.com). Another common issue is that your mailserver provide a valid certificate but does not send a intermediate certificate. You can check configuration for your mailserver here https://ssl-tools.net/mailservers |
🤦🏻♂️ thanks for this hint and thanks to @xf- |
'version' => '14.0.0.19',
Steps to reproduce
To rule out errors in the interface, I looked at the "config.php" and what is changing in it.
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtpname' => 'anyname@anydomain.com',
'mail_smtppassword' => 'anypass',
'mail_from_address' => 'anyname',
'mail_smtphost' => 'smtp.anydomain.com',
'mail_smtpsecure' => 'ssl',
'mail_smtpport' => '465',
'mail_domain' => 'anydomain.com',
SMTP TLS/SSL 465 = (Fehler: Connection could not be established with host smtp.anydomain.com [ #0])
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => 'anyname',
'mail_smtphost' => 'smtp.anydomain.com',
'mail_smtpsecure' => 'tls',
'mail_smtpport' => '587',
'mail_domain' => 'anydomain.com',
'mail_smtpauth' => 1,
'mail_smtpname' => 'anyname@anydomain.com',
'mail_smtppassword' => 'anypass',
SMTP STARTTLS 587 = (Fehler: Unable to connect with TLS encryption)
The same happens when I use the server IP
stream_socket_enable_crypto(): Peer certificate CN=
myhosterdomain' did not match expected CN=
smtp.anydomain.com' at /var/www/html/nextcloud/3rdparty/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php#94So if I understand correctly, he does not like the cert, but mail programs Airmail & Apple mail runs without a problem. Does anyone have a suggestion? Thank you very much.
The text was updated successfully, but these errors were encountered: