If I understand you correctly, then this functionallity is already built into WHM. You just need to go:
WHM -> Email -> Mail Troubleshooter
and put the problem email address into the box and WHM will show you what it does with the email.
Alternativly you can take a look in the mail log and see what the server is doing with the mail.