none
SmtpReceiveAgent message rejected state with Anti-Spam agents enabled

    Question

  • Hello,

     I am writing a custom SmtpReceiveAgent and having some difficulties determining message state when there are anti-spam agents enabled.

     Basically my agent supposed to process some messages on OnDisconnect event.

     To simplify explanation imagine that you need to count messages that will be accepted by the Exchange server and not rejected by the anti-spam filters. However I wasn't able to determine actual state of the message at the time of disconnection from the server. OnReject event is no help here as it is raised when certain command is being rejected during SMTP conversation which doesn't necessary mean that the whole message will be rejected.

     So my question is - Is it possible to determine during SMTP conversation that given message will be rejected by anti-spam filters without hunting for individual filter rejection commands?

    Thanks.

    Monday, August 16, 2010 11:09 AM