I was thinking about that and the obvious answer is to add a envelope sender i.e. adding it as the 5th parameter in the mail function plus add the "Errors-To:" for convenience just in case some MTA/sendmail installations also use that.
So as an example we would do....
$envelope_sender = $cfg->envelopeSender;
$headers .= "Errors-To: ".$envelope_sender;
$parameters .= '-f'.$envelope_sender;
and then do our mail($to,$subject,$message,$headers,$parameters) wherever that is done.
http://it2.php.net/manual/en/function.mail.php(http://it2.php.net/manual/en/function.mail.php) details this.
The "envelopeSender" would be effectively a bounce address that crap would end up. As an idea you could also potentially make osTicket pick that up and create tickets which are issued to a "Broken Email Department" WITHOUT autoreply. Thus osTicket would pick up bounces and raise them as tickets. A person could then go through these "tickets" and fix the problem with the emails e.g. spelling, SPAM etc and then delete that bounce ticket as well as potentially correcting the details in the actual customer ticket.
Or you could use an email reader to just go through the messages by hand.
On any automated mailing system e.g. lists, then bounce handling is very important and in this case osTicket, with automatic replies should offer the ability to alter the envelope sender.