我有一个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要求,例如新权限?
答案 0 :(得分:0)
IIS7不再使用IIS SMTP事件体系结构,而是必须创建SMTP接收代理。 (更多信息请见http://msdn2.microsoft.com/en-us/library/aa563087.aspx)