I'm looking for a solution to handling returned mail automatically with PHP.
We have a mailing list of about 20-25,000 people (no, we are <B>not</B> spammers) for our website to send out semi-weekly updates. We get a LOT of returned mail from people -- some are for full mailboxes, others for invalid accounts, and some for out-of-office messages, etc.
I'm looking for a way to pipe returned mail to a separate account that would be "managed" by a PHP program. Perhaps this program could parse the incoming emails for email addresses and compare to our database. When it finds a match, that email would have a numeric flag increased on it, so that after X number of returned emails we no longer send any messages to that address.
Does that make sense?
Anyone have any ideas on how to go about this? The main part that I need to understand how to do it to get PHP to handle the email. I've piped email to CGI programs before, but never to PHP, so I just need to know how to get started.
Thanks in advance for any help...