Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have an SMTP Event Sink to process incoming SMTP email messages to perform special processing. Under IIS 6/SMTP, this event sink runs as expected. Under IIS 7/SMTP, it does not appear to run, even though it appears to register successfully, as shown below:

c:\Program Files\Kryptiq Corporation\GW\Bin>regsvr32 SpoolFilter.dll

c:\Program Files\Kryptiq Corporation\GW\Bin>smtp_sink_register.bat

c:\Program Files\Kryptiq Corporation\GW\Bin>cscript smtpreg.vbs /add 1 OnArrival
 KryptiqSpoolFilter SpoolFilter.FilterObject "mail from=*"
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Binding Display Name Specified: KryptiqSpoolFilter
Assigning priority (24575 in 32767)
** SUCCESS **
Registered Binding:
 Event Name  :SMTP Transport OnSubmission
 Display Name:KryptiqSpoolFilter
 Binding GUID:{C12ECB83-BF0A-46B4-823D-8C4D212F5238}
 ProgID      :SpoolFilter.FilterObject
   Rule      :mail from=*
   Priority  :24575 (0 - 32767, default: 24575)
   ComCatID  :{FF3CAA23-00B9-11d2-9DFB-00C04FA322BA}

How can I debug this event sink and figure out why it is not processing any email that lands in the SMTP pickup directory, and instead the email passes through untouched? Are there IIS 7 requirements for SMTP Event Sinks that are different from IIS 6, such as new permissions?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

According to the URL http://social.technet.microsoft.com/Forums/en-US/exchangesvrtransport/thread/73fd85d0-66c4-4ffa-904f-0b0bcb521a31

IIS7 no longer uses the IIS SMTP event architecture, and instead you have to create an SMTP Receive Agent. (more information at http://msdn2.microsoft.com/en-us/library/aa563087.aspx)

share|improve this answer

I assume you resolved your issue but in case other people have a similar issue, make sure your assembly is signed and use regasm /codebase {your assembly name}

Bob

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.