After many attempts I managed to solve the problem, basically a firewall was active that did not allow outgoing connections on the port for SMTPs.
Now 80% of emails arrive at their destination but 20% (in particular those related to the replies in tickets) are rejected by Google for this reason:
In fact, opening the full content of the email in the error log, two message IDs appear:
Can someone explain to me why?
Nothing strange is set in the email settings, I also tried to use the simple sending in text format, without HTML, but the result does not change.
Thanks