Iis – How to configure the IIS SMTP service to store *all* emails (regardless of domain) in the drop folder

iissmtp

How can I configure the IIS SMTP service to store all emails (regardless of domain) in the drop folder?

I'm trying to catch all emails sent to an SMTP server during testing. I don't want to relay the emails on to their final destination, I just want them to sit in the C:\inetpub\mailroot\Drop folder so that I can inspect them later on.

Is this even possible with IIS's SMTP server?

I'm using Server 2008 R2 Standard with just the SMTP feature installed.

Best Answer

There are probably a number of ways to do this, but I'm thinking that if you configure the SMTP server to use a smart host for delivery and plug in a bogus ip address that will keep it from being able to deliver any emails. I'm not sure if it will cause the SMTP server to move the emails to the badmail folder or not, but at the end of the day it will keep the emails from being delivered and they'll be available to you regardless of the folder they're in.