Hi I’m facing problems, and I can’t find a solution. first the refresh of mails take sometimes a long time to be done.
install on openmediavault, with swag on docker
Second, I have these logs :
‘’'Horde_Imap_Client_Exception Error when communicating with the mail server.
- /config/www/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.phpLigne 4560
Horde_Imap_Client_Socket_Connection_Socket->read
()
- /config/www/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.phpLigne 623
Horde_Imap_Client_Socket->_getLine
()
- /config/www/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.phpLigne 375
Horde_Imap_Client_Socket->_connect
()
- /config/www/nextcloud/apps/mail/lib/IMAP/ImapClientRateLimitingDecorator.phpLigne 73
Horde_Imap_Client_Socket->_login
(
"*** sensitive parameters replaced ***"
)
- /config/www/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.phpLigne 853
OCA\Mail\IMAP\ImapClientRateLimitingDecorator->_login
(
"*** sensitive parameters replaced ***"
)
- /config/www/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.phpLigne 222
Horde_Imap_Client_Base->login
(
"*** sensitive parameters replaced ***"
)
- /config/www/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.phpLigne 137
OCA\Mail\Service\Sync\ImapToDbSynchronizer->sync
(
"*** sensitive parameters replaced ***"
)
- /config/www/nextcloud/apps/mail/lib/BackgroundJob/SyncJob.phpLigne 111
OCA\Mail\Service\Sync\ImapToDbSynchronizer->syncAccount
(
"*** sensitive parameters replaced ***"
)
- /app/www/public/lib/public/BackgroundJob/Job.phpLigne 81
OCA\Mail\BackgroundJob\SyncJob->run
()
- /app/www/public/lib/public/BackgroundJob/TimedJob.phpLigne 102
OCP\BackgroundJob\Job->start
()
- /app/www/public/lib/public/BackgroundJob/TimedJob.phpLigne 92
OCP\BackgroundJob\TimedJob->start
()
- /app/www/public/cron.phpLigne 152
OCP\BackgroundJob\TimedJob->execute
()
‘’’
{
"reqId": "IokJX6PEJXQudgtnFAtE",
"level": 3,
"time": "2024-03-27T09:20:39+00:00",
"remoteAddr": "",
"user": "--",
"app": "mail",
"method": "",
"url": "--",
"message": "Cron mail sync failed for account 2",
"userAgent": "--",
"version": "28.0.3.2",
"exception": {
"Exception": "Horde_Imap_Client_Exception",
"Message": "Error when communicating with the mail server.",
"Code": 28,
"Trace": [
{
"file": "/config/www/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php",
"line": 4560,
"function": "read",
"class": "Horde_Imap_Client_Socket_Connection_Socket",
"type": "->"
},
{
"file": "/config/www/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php",
"line": 623,
"function": "_getLine",
"class": "Horde_Imap_Client_Socket",
"type": "->"
},
{
"file": "/config/www/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket.php",
"line": 375,
"function": "_connect",
"class": "Horde_Imap_Client_Socket",
"type": "->"
},
{
"file": "/config/www/nextcloud/apps/mail/lib/IMAP/ImapClientRateLimitingDecorator.php",
"line": 73,
"function": "_login",
"class": "Horde_Imap_Client_Socket",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/config/www/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Base.php",
"line": 853,
"function": "_login",
"class": "OCA\\Mail\\IMAP\\ImapClientRateLimitingDecorator",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/config/www/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php",
"line": 222,
"function": "login",
"class": "Horde_Imap_Client_Base",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/config/www/nextcloud/apps/mail/lib/Service/Sync/ImapToDbSynchronizer.php",
"line": 137,
"function": "sync",
"class": "OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/config/www/nextcloud/apps/mail/lib/BackgroundJob/SyncJob.php",
"line": 111,
"function": "syncAccount",
"class": "OCA\\Mail\\Service\\Sync\\ImapToDbSynchronizer",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/app/www/public/lib/public/BackgroundJob/Job.php",
"line": 81,
"function": "run",
"class": "OCA\\Mail\\BackgroundJob\\SyncJob",
"type": "->"
},
{
"file": "/app/www/public/lib/public/BackgroundJob/TimedJob.php",
"line": 102,
"function": "start",
"class": "OCP\\BackgroundJob\\Job",
"type": "->"
},
{
"file": "/app/www/public/lib/public/BackgroundJob/TimedJob.php",
"line": 92,
"function": "start",
"class": "OCP\\BackgroundJob\\TimedJob",
"type": "->"
},
{
"file": "/app/www/public/cron.php",
"line": 152,
"function": "execute",
"class": "OCP\\BackgroundJob\\TimedJob",
"type": "->"
}
],
"File": "/config/www/nextcloud/apps/mail/vendor/bytestream/horde-imap-client/lib/Horde/Imap/Client/Socket/Connection/Socket.php",
"Line": 241,
"message": "Cron mail sync failed for account {accountId}",
"exception": {
"details": null,
"logged": false,
"raw_msg": "Error when communicating with the mail server."
},
"CustomMessage": "Cron mail sync failed for account 2"
},
"id": "6603e4f0c36b8"
}
here what I’ve done in my config.php :
‘’’
‘allow_local_remote_servers’ => true,
‘app.mail.imap.timeout’ => 25,
‘app.mail.smtp.timeout’ => 5,
‘’’
I’ve searched for a solution but can’ty find it… Sorry for my english level.