Open ThibautPlg opened 5 months ago
Hi Any news on this? Can someone reproduce or give a insight?
The cause appears to be that even though we appear to anticipate the failure here:
The exception from the Mailer (which we're calling there) is caught before it gets back to the above code path. That happens here:
Hello, I've noticed an unexpected behavior regarding the mail notification. When the SMTP authentication is resulting in an error, the mail is purged instead of being kept and sent later.
Steps to reproduce
occ activity:send-mails
Expected behaviour
The mail queue shouldn't be purged and my mail should be postponed until the SMTP password is corrected.
Actual behaviour
The mail queue is purged and my mail lost.
From my limited understanding, the smtp error should be caught by this code: https://github.com/nextcloud/activity/blob/master/lib/MailQueueHandler.php#L364, however the string
Failed sending activity email to user
is nowhere to be seen in my logs. Neither are the other error strings I could find on the codebase (missing email, invalid email address, parser error...)Server configuration
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
Logs
Nextcloud log (data/nextcloud.log)
Best regards,