How do I forward incoming e-mails to a PHP processing script from Microsoft Exchange?
Posted on 2009-05-15
I would like to build an e-mail processor for Microsoft Exchange whereby any incoming e-mail sent to firstname.lastname@example.org is forwarded to a PHP script which will parse the e-mail, log the e-mail in a database, and forward the e-mail on to another recipient. I've done some reading on the topic and understand this may be accomplished using VBScript with an OnDeliverMessage function that "pipes" the e-mail to a PHP script. However, our exchange server has other e-mail domains that have incoming messages which *should not* be intercepted by the PHP script.
So my question:
How do I achieve the forwarding of incoming mail messages to a PHP script using exchange (for a single domain only). The recipient address can be email@example.com.
Any help is greatly appreciated!!