From the start I’ve had the log being stamped with IMAP\Connection is already closed when running bin/console mautic:email:fetch every time the cron job was running and there is a long standing ticket open for this issue and whether it’s a floater or not I can’t say since I’m new to Mautic since of v6.0.4. But, what I can say is that the issue and getting ride of the errors in the prod-log can be solved by what is suggested in ticker #14344 to change line 394 in /app/bundles/EmailBundle/MonitoredEmail/Mailbox.php from:
return $this->isConfigured() && $this->imapStream && @imap_ping($this->imapStream);
to:
return $this->isConfigured() && is_resource($this->imapStream) && @imap_ping($this->imapStream);
fixes the issue as well for us using v6.0.4.