If you can find out the specific cause of the syntax error that would be the best place to start. For example, by default the gateway will reject 8bit (non-ascii) characters in the mail from. In some cases you may be able to make a configuration change to remedy. You can use tcpdump to capture the traffic specifically from the host that has been causing the 5.5.2's and drill in from there.
Good luck.