Skip to content

[Bug]: mail_smptauth option is not set when changing mailer config options in admin settings #36502

@miaulalala

Description

@miaulalala

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • Nextcloud Server is running on 64bit capable CPU, PHP and OS.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

Previously, the mail settings in admin-> settings-> basic settings-> had an option to en-/disable the authentication.

This checkbox has been removed with the refactoring to Symfony Mailer.

Steps to reproduce

  1. Go to settings admin basic settings
  2. save your config
  3. save username password
  4. save config again
  5. look at config.php - username and password have been unset

Expected behavior

2 options:

either the form field sould reappear, allowing authenticationless login (that depends on symfony supporting it)

or fix the username/pw field being optional and don't allow configs without username / password

Installation method

Other Community project

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.0

Web server

Apache (supported)

Database engine version

MySQL

Is this bug present after an update or on a fresh install?

Updated to a major version (ex. 22.2.3 to 23.0.1)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

---

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

☑️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions