在Windows 2008下运行/调试SMTP事件接收器 [英] Running/debugging SMTP Event Sinks under windows 2008

查看:138
本文介绍了在Windows 2008下运行/调试SMTP事件接收器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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}

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

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?

推荐答案

根据URL
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

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)

这篇关于在Windows 2008下运行/调试SMTP事件接收器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆