Open Synchro opened 10 years ago
Another thought - it would be good to be able to test timeouts too, perhaps with delay10@error.example.com
, though there would probably need to be an app-level delay option to support greetdelay, which needs to occur before HELO.
Thanks for the issue, it could indeed be a really nice improvement.
I will check if this can be implemented easily, otherwise we will probably need to wait for a pull request on this one.
A vital part of testing SMTP clients is in error handling. FakeSMTP is great for testing success, but it would be really useful to be able to deliberately provoke specific standard RFC821 and extended RFC3463 error responses, perhaps via special addresses, for example:
Postfix's smtp-sink project does this to an extent, but it doesn't have the nice usability that FakeSMTP does. There's a good doc on SMTP errors here.
I think this will largely involve extending
MailListener->accept
, but I'm not a Java coder...