SMTP IIS Message Inspection

Is there a way to look or see a message before it gets to SMTP in IIS. This is not an Exchange Server, it just launches SMTP. I'm trying to see if I can see the message and send it to SMTP?

thanks

Edit ~ Instead of adding another list, I am wondering if there is a way to bind to the SMTP list by default and intercept the message and then transfer it.

2nd Edit ~ Ok, here is my problem. I have a spam filter in front of my exchange box, unfortunately (due to software development) the filter is limited when it comes to "Utilization of Loookup Directories". This is a process in which email addresses are checked if they exist in AD, and mail is dropped if they do not. My current filter drops mail if one of the addresses does not exist in AD, which is not very good. I spoke with the seller, and this time they can not do anything. I look at the application in front of this filter, which will intercept (open, read, analyze) mail, check addresses, and then send the email to the filter for additional scanning. I will then disable this feature in my software. Do not misunderstand me,their filter works fine with this one exception, which I have to fix, since I have many emails sent to non-existent users in my domain.

+3
source share
5 answers

You can write your own SMTP proxy service to which you connect to send messages. You can forward all messages directly to your real SMTP service and forward all responses. Then you can analyze all these messages and process them accordingly.

It might be a bit overkill for what you need, but it's pretty easy to code, since you don't need to know anything about the protocol, since everything that you are is a proxy server.

+2
source

If you are using .NET 2.0, you can write SMTP sessions to a file:

How to create an SMTP session log file? (System.Net.Mail)

Updated:

Take a look at this question:

Testing SMTP with .net (stack overflow)

:

" , SMTP , ?"

... :

" , , SMTP ".

, SMTP. SMTP- - . SMTP , , . ( ) . , - - - - SMTP. - Papercut, .

+1

.Net SmtpClient , SMTP-. , , . (. SmtpClient.PickupDirectory)

0

IIRC, SMTP IIS ( ). , , google " ", , .

0

, - Ethereal . , "" "". - , , , , ?

0

Source: https://habr.com/ru/post/1705101/


All Articles