This project has moved and is read-only. For the latest updates, please go here.

Injecting / simulating SMTP errors

Jul 1, 2015 at 9:09 AM
I would like to be able to trigger SMTP errors in Papercut when it talks to the email client, in order to test the error handling capability of our email client software.

Has anyone done similar task before? I am grateful for any advice.

Regards - Thomas
Jul 2, 2015 at 8:37 AM
Well, this is what I am doing now:

I downloaded the papercut source code, installed visual studio express on a virtual machine, and am running Papercut in debug.
I edit SmtpProtocol.cs to return something unexpexted to the client, for instance closing the connection upon receiving "DATA" from the client.
I can do all sorts of mischief like that and see how the client handles it.

As comparison to our own email client I use Mozilla Thunderbird and sendmail from Caspian.dotconf