本文介绍了Exchange Web服务(EWS)无法在我们的域(或Active目录)中发送带有发件人的电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个SSIS包(使用SQL 2008)使用自定义脚本(c#),它使用EWS(作为web refrefence)来检查电子邮件 (绑定sendfrom) 到我们的一个svc帐户,然后找到附件并每天导入到数据库。
一切都工作正常,但是当我们公司最终关闭旧的交换服务器时,新的交换服务器就是2007年的交换机。我收到电子邮件时遇到问题,我可以在网络邮件中看到电子邮件(owa)或outlook,但是webservice调用只报告
返回(没有找到项目)。


我试图要求供应商发送带有外部域名地址的电子邮件(不是像@ mycompany.com这样的东西),似乎就是这个伎俩。但我再次回到这个问题,因为现在我们有另一个供应商使用个人资料电子邮件(我们的公司地址)每天发送
发送文件,我们现在尝试自动化此过程。我在测试时让SSIS正常工作,但是一旦将其切换到inter-compnay电子邮件地址,它就无法接收任何信息。不幸的是,这一次,没有办法将电子邮件发件人更改为
根本不存在的东西,所以我不能使用相同的解决方法。


在与此同时,我确实注意到我在一个月前测试时遇到问题,如果我将电子邮件发送到Outlook客户端的此帐户,则电子邮件会将发件人显示为"姓氏,名字"。 ==> EWS可以相应地接收电子邮件。但是如果
我使用自动转发规则,则电子邮件中的发件人不是那种格式==> EWS根本看不到它。我认为在Active目录和交换之间缺少一些东西,但我不是系统管理员,所以不知道。


而且一直以来,它都可以和外面的发件人一起使用我们的域名(不是@ mycompany.com)。这真是奇怪。 exhcange团队一直告诉我,他们的服务器上的每个标志都是正确的,但显然,网络服务响应不仅仅是
,我可以看到该项目只是坐在收件箱中。因此,如果任何人都可以提供一个提示,我会真的给它提供帮助。


谢谢,


 


 

解决方案

I had an SSIS package (with SQL 2008) used the custom scripts (c#), which use the EWS (as web refrefence) to check the e-mail (binding the sendfrom) to one of our svc account and then find the attachment and import that to database daily. It all working fine for month, but when our company finally shutdown the old exchange server, the new one is exchange 2007. I had problem to pick up the e-mail, I can see the e-mail in the webmail (owa) or outlook, but the webservice call just report nothing back (no item found).

I try to ask the vendor to send e-mail with outside domain address (not anything like @mycompany.com), it seems that did the trick. But I back to this problem again due to now we had another vendor use the profile email (with our company address) to send file daily, we try to automate this process now. I had the SSIS working when testing, but once switch it to the inter-compnay e-mail address, it just can not pick up any. Unfortunately, this time, there is no way to changethe e-mail sender to something does not exists at all, so I can not use the same workaround.

In the meantime, I did notice when I test month ago when I had problem first, that if I send the e-mail to this account with outlook client, the e-mail show up the sender as "last name,firstname" ==> EWS can pick up the e-mail accordingly. But if I use the auto-forward rule, the sender on the e-mail is not in that format ==> EWS just cannot see it at all. I think it's something missing between the Active directory and exchange, but I'm not a system admin anyway, so have no clue.

And all the time, it works fine with sender from outside our domain (not  @mycompany.com). this is is realy odd. And out exhcange team keeps telling me that everythign is right on their server, but apparently, the web service response back just not right, I can see the item just sit there in the inbox. So if anyone can give ma a hint, I would really apperciated it.

Thanks,

解决方案


这篇关于Exchange Web服务(EWS)无法在我们的域(或Active目录)中发送带有发件人的电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 02:14