Resolved.
while I was doing the tests, I verified several times that when activating the procedures with the system cron, the enable fetch flag of Remote Mailbox disappeared and I was convinced that it was somehow an alternative to the cron script.
Unfortunately I hadn't tried to activate it again so it didn't take much.
Everything works even though I'm using PHP 8.3.1 so at the moment I think I'll leave it like this, after nights of discussions we need a bit of peace. 🙂
I'm not clear exactly what the script set in cron does:
*/1 * * * * nobody /usr/bin/php /var/www/html/api/cron.php
Compared to the Fetch settings on the Remote Mailbox tab where for now I have set the check every 5 minutes.
Emails are downloaded every 5 minutes, this is evident.
If I had multiple emails the script would remain unique, right? So in the Mailboxes I could manage different times.
Thank you for all