How to make Exchange deliver outgoing messages to a directory?
Hello, I need to get Exchange 2007 to put all outgoinh SMTP messages sent to a specific domain, e.g., a.company.com, to a specific directory, e.g., c:\temp, in EML format. From there, the messages will be manually copied to the drop directory of another Exchange 2003 system for final delivery. How do I configure Exchange to delvier to a directory please? Or do I just grab messages from the Queue directory? The two Exchange servers are installed in isolated networks with no external connectivity. Thanks, - Alan.
May 23rd, 2011 7:29am

Not out the box, with 2003 you had archive sink which you could install on your bridgehead to capture internal email which would export to eml. For 2007 there is no equivalent feature. You have to write custom transport agent. You can try posting in dev forum to see if someone has one. Email and Attachment Archiving with a Transport Agent on Exchange 2007 http://gsexdev.blogspot.com/2007/09/email-and-attachment-archiving-with.htmlJames Chong MCITP | EA | EMA; MCSE | M+, S+ Security+, Project+, ITIL msexchangetips.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
May 23rd, 2011 9:37am

You can use powershell and a scheduled task to do this. Set up a custom send connector for that domain, with an unreachable smarthost. That will cause all the email for that domain to accumulate in the queue(s). Write a powershell script to find and suspend the queue(s) for that destination, then export all of the emails out of the queue(s) using export-message, then delete the export emails from the queue. Schedule it to run as often as appropriate for the volume and application requirements. [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "
May 23rd, 2011 9:54am

Thanks for the replies, much appreciated. I think I'll setup an IIS SMTP component on another server and set it as a smarthost for the Exchange 2007 server for that domain. Then I can pickup the files from that queue. Thanks again!
Free Windows Admin Tool Kit Click here and download it now
May 23rd, 2011 10:31am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics