Error when communicating with the mail server
Steps to reproduce
- Let the Cron job mail sync run or sync mailbox manually
- With an admin profil, go to Configuration Parameters > Logging
Expected behavior
No errors during communicating with the mail server.
Actual behavior
I have a lot of :
- Horde_Imap_Client_Exception Error when communicating with the mail server Cron mail sync failed for account xx or
- ServiceException Could not fetch stats of mailbox xxx. IMAP error: Error when communicating with the mail server. or even
- ServiceException Could not fetch message source: Mail server denied authentication.
horde_imap.log horde_imap 2 extract failed 22h14 anonymized.log
nextcloud.log nextcloud 2 extrait.log
open_ssl test open_ssl test result Mailo.txt
Mail app version
4.0.9
Nextcloud version
30.0.2 (AIO 10.0.0)
Mailserver or service
Mailo.com
Operating system
No response
PHP engine version
PHP 8.3
Nextcloud memory caching
No response
Web server
Apache (supported)
Database
PostgreSQL
Additional info
I'm not sure I should report this issue because I only have it with the Mailo.com mail server. But I did a test with Thunderbird in debug mode overnight (sync every 10 minutes) => no error in Thunderbird logs. So I think it's not necessarily due to the server but perhaps to the mail app. That's why I've decided to bring the subject here. @Mat-M, you seems to bee a Mailo.com user, maybe you can give feedback ? Thanks.
I've tried to collect the log files above in the most targeted way possible (for a single occurrence of Cron mail sync error). In the imap log, I have left it from the start of the cron job to the end.
Log files collected yesterday with NC30.0.2 / Mail 4.0.9. Same issue today after update to NC30.0.4 / Mail 4.0.10 I have tried to increase the imap timeout without success.
No issues on my side with my mailo account, after upgrading 30.0.4 and Mail 4.1.1
Maybe you need some fixes in you rNC. I see :
{"Exception":"Exception","Message":"dirty table reads: S...
in your nextcloud log.
Hi @mat-m , thanks for The feedback. I'm not at home this week. Next week I'll try removing completely Mail app, reinstalling and seeing what happens.
Hi @StefInP, are you still seeing that issue?
Hi @kesselb , Yes, I always have. My current configuration : nc 31.0.10 / mail 5.6.4 Same issue whith another instance created for test : nc 32.0.2 / mail 5.6.4 Tell me if I should post recent logs. Thank you.
Okay, reinstalling the app had no effect. It's been a while since Mail 4.x so fresh logs would be nice.
Hi @kesselb , sorry for the delay in responding. In my new instance (nc 32.0.2, AIO v12.2.1) I am unable to retrieve the files horde_imap.log and horde_smtp.log (mode debug = true, level = 0). For the time being, I can only post nextcloud.log and Open_ssl test
For horde_imap.log and horde_smtp.log :
No file in Nextcloud_data_dir
sudo docker exec -it nextcloud-aio-nextcloud tail data/horde_imap.log returne "no file exists" (but works fine for nextcloud.log).
If you have any ideas on how to recover these files.
Hi @kesselb, I managed to retrieve the horde_imap.log file. By the way, I think the documentation to switch the mail app to debug mode should be more accessible. In the horde_imap.log file, this issue occurs at 21:55:25 (UTC).
nextcloud.log mail-admin-1-imap.log openssl s time connect.txt
Thanks.