Thanks for the reply. I wound up using milter-regex to quarantine the
messages that match my criteria, use qtool.pl to move the quarantined
messages to a different queue, un-quarantine the messages, then run
sendmail with a different config file (with a smarthost) to feed all the
messages to the specified host. Perhaps not elegant, but functional.