在Windows 2008下运行/调试SMTP事件接收器

时间:2010-01-15 16:51:55

标签: iis iis-7 iis-6 smtp

我有一个SMTP事件接收器来处理传入的SMTP电子邮件以执行特殊处理。在IIS 6 / SMTP下,此事件接收器按预期运行。在IIS 7 / SMTP下,它似乎无法运行,即使它似乎成功注册,如下所示:

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}

如何调试此事件接收器并弄清楚为什么它不处理任何落在SMTP拾取目录中的电子邮件,而是电子邮件通过未触及?是否存在与IIS 6不同的SMTP事件接收器的IIS 7要求,例如新权限?

1 个答案:

答案 0 :(得分:0)

根据网址 http://social.technet.microsoft.com/Forums/en-US/exchangesvrtransport/thread/73fd85d0-66c4-4ffa-904f-0b0bcb521a31

IIS7不再使用IIS SMTP事件体系结构,而是必须创建SMTP接收代理。 (更多信息请见http://msdn2.microsoft.com/en-us/library/aa563087.aspx