nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.31k stars 4.06k forks source link

[Bug]: "Forgot Password" e-mail not being sent #47232

Closed scansse closed 2 months ago

scansse commented 2 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

I receive all e-mails generated by the Nextcloud server (test, new user created, e-mail address changed,...) but when a user clics on the "Forgot password" link, the e-mail to reset the password never reaches that user. I have the same behaviour whether I use SMTP mail configured in Nextcloud or Sendmail configured in Nextcloud.

Steps to reproduce

  1. Create a test account having an e-mail address you have access to
  2. Make an initial login in Nextcloud with this test account
  3. logout
  4. clic on the "Forgot password" on the Nextcloud login page
  5. Enter userid or e-mail address
  6. Check your mailbox and spam folder to see if you receive the reset password e-mail

Expected behavior

"Forgot Password" email should be received like any other e-mail sent by Nextcloud.

Installation method

Community Web installer on a VPS or web space

Nextcloud Server version

29

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Apache (supported)

Database engine version

MySQL

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

Upgraded to a MAJOR version (ex. 28 to 29)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "141.135.58.197",
            "localhost",
            "volt",
            "volt.magic",
            "cansse.privatedns.org",
            "cansse.my.to"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "29.0.4.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "mysql.utf8mb4": true,
        "logtimezone": "UTC",
        "loglevel": 2,
        "installed": true,
        "maintenance": false,
        "theme": "",
        "overwrite.cli.url": "https:\/\/cansse.my.to\/nextcloud",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "pipe",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": "true",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0,
            "dbindex": 0
        },
        "default_locale": "fr_BE",
        "default_language": "fr",
        "default_phone_region": "BE",
        "enable_previews": true,
        "preview_max_x": 1920,
        "preview_max_y": 1080,
        "enabledPreviewProviders": [
            "141.135.58.197",
            "OC\\Preview\\GIF",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\Krita",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\MP3",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\PNG",
            "OC\\Preview\\TXT",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie"
        ],
        "app_install_overwrite": [
            "141.135.58.197"
        ],
        "maintenance_window_start": 2,
        "defaultapp": "",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***"
    }
}

List of activated Apps

Enabled:
  - activity: 2.21.1
  - admin_audit: 1.19.0
  - bruteforcesettings: 2.9.0
  - cloud_federation_api: 1.12.0
  - contactsinteraction: 1.10.0
  - dashboard: 7.9.0
  - dav: 1.30.1
  - federatedfilesharing: 1.19.0
  - files: 2.1.0
  - files_downloadlimit: 2.0.0
  - files_external: 1.21.0
  - files_pdfviewer: 2.10.0
  - files_sharing: 1.21.0
  - files_trashbin: 1.19.0
  - files_versions: 1.22.0
  - firstrunwizard: 2.18.0
  - impersonate: 1.16.0
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - maps: 1.4.0
  - metadata: 0.20.0
  - nextcloud_announcements: 1.18.0
  - notifications: 2.17.0
  - oauth2: 1.17.0
  - password_policy: 1.19.0
  - photos: 2.5.0
  - previewgenerator: 5.6.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - recognize: 7.1.0
  - related_resources: 1.4.0
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - sharelisting: 1.2.0
  - support: 1.12.0
  - suspicious_login: 7.0.0
  - text: 3.10.1
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - updatenotification: 1.19.1
  - user_status: 1.9.0
  - viewer: 2.3.0
  - weather_status: 1.9.0
  - workflowengine: 2.11.0
Disabled:
  - circles: 29.0.0-dev (installed 29.0.0-dev)
  - comments: 1.19.0 (installed 1.19.0)
  - encryption: 2.17.0 (installed 1.0.0)
  - facerecognition: 0.9.51 (installed 0.9.51)
  - federation: 1.19.0 (installed 1.19.0)
  - files_downloadactivity: 1.17.0 (installed 1.17.0)
  - files_reminders: 1.2.0 (installed 1.0.0)
  - recommendations: 2.1.0 (installed 2.1.0)
  - sociallogin: 5.6.6 (installed 5.6.6)
  - survey_client: 1.17.0 (installed 1.17.0)
  - systemtags: 1.19.0 (installed 1.19.0)
  - twofactor_totp: 11.0.0-dev
  - user_ldap: 1.20.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

Nothing valuable in log.
Log too long for this post.

Additional info

n/a

skjnldsv commented 2 months ago

Please enable debug mode and try again. The mail service should give more data

scansse commented 2 months ago

Sorry, the issue was not with Nextcloud, but rather with the mail server I was using. Telenet mail server seems to filter these messages. I switched to Yahoo and it works now.

skjnldsv commented 2 months ago

Great to hear!! Thanks for updating us 🤗