Skip to content

Unable to change SMTP server port from STARTTLS 587 to SSL/TLS 465 #12970

@handkerchief333

Description

@handkerchief333

Steps to reproduce

I am unable to change the SMTP server settings for a mail account from STARTTLS on port 587 to SSL/TLS on port 465.

When I save the changed SMTP settings, the interface loads for about 30 seconds and then shows the following error message:

SMTP connection failed

The setting is not applied successfully.

  1. Open the mail account settings.
  2. Select an existing mail account.
  3. Go to the SMTP server settings.
  4. Change the SMTP configuration from: - Port: 587 - Encryption: STARTTLS
  5. To:
    • Port: 465
    • Encryption: SSL/TLS
  6. Save the settings.

Expected behavior

The SMTP settings should be saved successfully, and the account should use port 465 with SSL/TLS for outgoing mail.

Actual behavior

The application loads for approximately 30 seconds and then displays:

SMTP connection failed

The SMTP settings cannot be changed successfully.

Mail app version

5.7.15

Nextcloud version

32.0.8

Mailserver or service

No response

Operating system

No response

PHP engine version

None

Nextcloud memory caching

No response

Web server

None

Database

None

Additional info

Here the error in the JS-console:

[ERROR] mail: could not save account details 
Object { app: "mail", uid: "example", level: 2, error: {…} }
index.mjs:47:17

{
  "app": "mail",
  "uid": "example",
  "level": 2,
  "error": {
    "status": "fail",
    "data": {
      "error": "OTHER",
      "service": "SMTP",
      "host": "asmtp.mail.example.com",
      "port": 465
    }
  }
}

Metadata

Metadata

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions