I programmed this for a client using a PowerShell script based on the DSNs
they received. I don't own the code, so I can't post it, but I can share
that the Lumisoft NET library is a godsend for doing this kind-of stuff. It
doesn't make it "easy", because you've got to program around a few bugs in
their MIME implementation, but it makes it quite feasible and not
extraordinarily difficult.

 

And if you use the POP-3 interface or the IMAP interface, the Exchange
version doesn't matter (and you can use various 3rd party mail servers as
well).

 

Regards,

 

Michael B. Smith

MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: Campbell, Rob [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 11, 2008 7:39 PM
To: MS-Exchange Admin Issues
Subject: How to programmitically capture delivery failures.

 

Problem: 

An application has a user database with email addresses.  The application
will send an email to the users in the database periodically.  The
application developers want the emails addresses from any of these that came
back undeliverable captured and sent back to them to clean up the database.

 

Environment - Exchange 2007 Edge and Hub Transport servers.  Exchange 2003
servers on the back end with the mailboxes. (No 2007 mailbox servers yet).

 

We're using an outsourced mail host (Message Labs) for delivery, so the
protocol logs aren't much help.  All outbound email will initially be
accepted by the servers at Message Labs, so there won't be any delivery
failures reported in the protocol logs on the Edge servers. 

 

Any email returned to the sending address should be a DSN.  There shouldn't
be any replies or other inbound email to that address.  

 

If I can get the incoming DSN's routed to a text file, I can parse out the
information I need.  

 

Originally I was thinking about just letting them go to BADMAIL, but it
seems that Exchange 2007 doesn't give you that option.

 

Any ideas?


~ Ninja Email Security with Cloudmark Spam Engine Gets Image Spam ~
~             http://www.sunbeltsoftware.com/Ninja                ~

Reply via email to