Skip to content
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

Closed
Jens-Seidel opened this issue Sep 14, 2018 · 4 comments
Closed

SMTP #11219

Jens-Seidel opened this issue Sep 14, 2018 · 4 comments
Labels

Comments

@Jens-Seidel
Copy link

'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#94

So 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.

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #3653 (SMTP sender name is incorrect), #7952 (SMTP over STARTTLS on 587 not work), #11218 (Missing "None" when displaying smtp auth options), #2271 (Allow multiple SMTP servers ), and #4354 (SMTP password visible in admin page HTML ).

@xf-
Copy link

xf- commented Sep 14, 2018

I think your mailprogramm uses stuff like autoconf/autodiscovery.domain or other auto config. Use the domain from the certificate.

@kesselb
Copy link
Contributor

kesselb commented Sep 14, 2018

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 Domain: mydomain.com
  • Mailserver: provider.com

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

@Jens-Seidel
Copy link
Author

🤦🏻‍♂️ thanks for this hint and thanks to @xf-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants