Cron sync mail errors

Good morning, I have searched about this problem but I can’t find any solution. The mail app performs a synchronization of the imap folders but when users change their passwords this fails.

There are multiple errors on the mail server side and in nextcloud itself
EJ: Horde_Imap_Client_Exception: Authentication failed.

Is there a solution to prevent synchronization of user mailboxes?

Our users must change the password from time to time due to security policy and when this happens the synchronization of the mailboxes fails. I can only think of an option that disables the synchronization option from the cron task.

Did you ever find a solution to his, my maillog is very difficult to parse because of all of these messages. I have not been able to determine why nextcloud.log is indicating the following, despite mail sync seeming to work. Using an LDAP backend.

"message":"Cron mail sync failed for account 30","userAgent":"
--","version":"24.0.8.2","exception":{"Exception":"OCA\\Mail\\Exception\\ServiceException","Message":"IMAP error synchronizing account 30: Remote server is temporarily unavailable.

While the nextcloud logs aren’t as much of a concern, maillog being spammed is more problematic. I know the interval can be changed somewhat, but doesn’t solve the underlying issue.

Edit: Looks like its related to Too long email address breaks sync · Issue #3608 · nextcloud/mail · GitHub in my case.

I’ve got the same error.

I assume, this happens during the cronjob, when the Mail-App tries to sync the mailbox of a user.
Right?

I think the error occurs because there is no valid configuration for the user mailbox and there will be no configuration. The user has an email-address but no password configured, no IMAP-server and no SMTP-Server.

So, I’d like to ask if there is any possibility to exclude these users from email syncing?

Best regards

MF

I have myself lot (~1/hr) of the following error since a few days (and maybe since a Nextcloud update to 28):

Exception HMAC does not match.
Cron mail sync failed for account 2 

I don’t even understand what “account 2” means here…
It all started on Feb 25 with this message after a restart:

 Exception HMAC does not match.
Error while running background job (class: OCA\Mail\BackgroundJob\QuotaJob, arguments: Array ( [accountId] => 2 ) ) 

I don’t know if it is linked but I have sometimes this error too:

Error Failed opening required '/var/www/html/custom_apps/mail/vendor/autoload.php' (include_path='/var/www/html/3rdparty/pear/archive_tar:/var/www/html/3rdparty/pear/console_getopt:/var/www/html/3rdparty/pear/pear-core-minimal/src:/var/www/html/3rdparty/pear/pear_exception:/var/www/html/apps:/var/www/html/custom_apps')
1 Like