KevinTheJedi thank you for your prompt reply.
I had already thought about setting things up as you suggest, and I'm already halfway.
Nonetheless, I think this is a bug in osTicket.
The first error, as you say, means that there is an email in the inbox that cannot be processed. BUT, it really has already been processed (I know this both because the ticket is created, and because the email is moved to an IMAP subfolder by the filter itself). Also, the IMAP configuration is the same as when the filter is not been triggered.
The second error is apparently very clear: the sender is not allowed. But in this case too, the SMTP setup is the same as when the filter is not triggered, so the error makes no sense.
Best
Cris