Write script to handle reporting email rejections associated with "554 Message not allowed" notices
554 Message not allowed - [PH01] Email not accepted for policy reasons. Please visit http://postmaster.yahoo.com/errors/postmaster-27.html
To help troubleshoot these issues I'm logging email subject lines to help pinpoint exactly which emails are being rejected. It's also probably worth nothing that it's helpful to have the sender's email address mapped to a real or aliased address that is hosted by a non-Yahoo server. Otherwise when Yahoo bounces the original the bounce goes back to Yahoo and it gets dropped.