0

when configuring SMTP server in IIS, is there a way to intercept all incoming SMTP messages in a IIS C# module, and possibly change the SMTP message before forwarding it (similar to creating custom HTTP module by inheriting from IHttpModule)?

elad-ep
  • 333
  • 1
  • 9
  • SMTP is no longer part of IIS starting from IIS 7, so a C# IIS module won't work as you wished. – Lex Li Aug 02 '15 at 14:13

1 Answers1

0

To monitor all incoming messages, you should write a windows service or an exe which can be scheduled to run once in every few seconds. The service can run on any windows server (with required softwares installed). To read more about how to check incoming emails, check this solution.

Community
  • 1
  • 1
TejSoft
  • 3,213
  • 6
  • 34
  • 58