|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Exchange Web Services MigrationI hope I get some help At the moment I (want to) migrate our exchange server from 2003 to 2007 and I have some trouble with a smtp sink. On the Ex03 an colleague installed an smtp sink with that every incoming and outging mail is copied to a subfolder in the mailbox of the receiving or sending user. My problem is that I can not change the path to the new server and I am not a programmer to create a new transport agent which can take over this rule. Forthermore my colleage has no experience with exchange and the script was adjusted from a sample. Is it possible to extand the script so I can access the new exchange server? Perhaps someone can have a look to the attached script and can tell me where I have to do some changes. THX and best regards from hamburg, Christian It looks like the script is using exoledb to save message to the users
mailbox which will only work if the mailbox is local to the server. You have probably already worked out that SMTP event sinks wont work on a 2007 server so you really need to look at getting a developer to write you a transport agent to replace this script. As a workaround if your leaving the 2003 in place you could maybe save the message to the mailbox using EWS or WebDAV but performance would be a concern. Cheers Glen Show quoteHide quote "Christian Weihs" <c.weihs'a@t'tiefenbacher.com> wrote in message news:euBxaswxJHA.2452@TK2MSFTNGP06.phx.gbl... > Hello everybody, > > I hope I get some help > > At the moment I (want to) migrate our exchange server from 2003 to 2007 > and I have some trouble with a smtp sink. On the Ex03 an colleague > installed an smtp sink with that every incoming and outging mail is > copied to a subfolder in the mailbox of the receiving or sending user. > > My problem is that I can not change the path to the new server and I am > not a programmer to create a new transport agent which can take over > this rule. Forthermore my colleage has no experience with exchange and > the script was adjusted from a sample. > > Is it possible to extand the script so I can access the new exchange > server? > > Perhaps someone can have a look to the attached script and can tell me > where I have to do some changes. > > THX and best regards from hamburg, > Christian > Hi Glen,
thanks a lot for your response! > It looks like the script is using exoledb to save message to the users The exchange 2003 have to stay in our environment because we need it > mailbox which will only work if the mailbox is local to the server. You have > probably already worked out that SMTP event sinks wont work on a 2007 server > so you really need to look at getting a developer to write you a transport > agent to replace this script. As a workaround if your leaving the 2003 in > place you could maybe save the message to the mailbox using EWS or WebDAV but > performance would be a concern. for smtp routing what isn't available on exchange 2007. So it would be ok to do it on this server... I will have a look to your examples how I get access to the mailbox server and than I will try to adjust the script... http://gsexdev.blogspot.com/2008/10/vbnet-sample-for-getting-number-of.html Do you have some other examples which could assist me? THX Christian Have a look at
http://gsexdev.blogspot.com/2007/01/sending-attachments-via-exchange-web.html in the download there is a VBS sample that shows how to post a CDO message object using VBS to a folder using EWS. The problem is setting the FolderID's to the folder you need to save to which isn't easy to do with VBS. You might want to consider WebDAV http://blogs.msdn.com/webdav_101/archive/2008/03/12/howto-webdav-put-using-vbscript.aspx which I would say it is going to be a lot easier to plug into you existing script in terms of folder paths. Neither is going to give you good performance you should look at migrating to a Transport agent for reliability. Cheers Glen Show quoteHide quote "Christian Weihs" <c.weihs'a@t'tiefenbacher.com> wrote in message news:%23fZMba9xJHA.1372@TK2MSFTNGP05.phx.gbl... > Hi Glen, > > thanks a lot for your response! > >> It looks like the script is using exoledb to save message to the users >> mailbox which will only work if the mailbox is local to the server. You >> have probably already worked out that SMTP event sinks wont work on a >> 2007 server so you really need to look at getting a developer to write >> you a transport agent to replace this script. As a workaround if your >> leaving the 2003 in place you could maybe save the message to the mailbox >> using EWS or WebDAV but performance would be a concern. > > The exchange 2003 have to stay in our environment because we need it for > smtp routing what isn't available on exchange 2007. So it would be ok to > do it on this server... > > I will have a look to your examples how I get access to the mailbox server > and than I will try to adjust the script... > > http://gsexdev.blogspot.com/2008/10/vbnet-sample-for-getting-number-of.html > > Do you have some other examples which could assist me? > > THX Christian > > Hi Glen,
Show quoteHide quote >> Now I am able to access the Exchange store and I can check messages and >> The exchange 2003 have to stay in our environment because we need it for >> smtp routing what isn't available on exchange 2007. So it would be ok to do >> it on this server... >> >> I will have a look to your examples how I get access to the mailbox server >> and than I will try to adjust the script... >> >> http://gsexdev.blogspot.com/2008/10/vbnet-sample-for-getting-number-of.html >> >> Do you have some other examples which could assist me? >> >> THX Christian >> folders but I am not able to create a new email via webdav. I didn't found an example or a methode on the msnd website: http://msdn.microsoft.com/en-us/library/aa142917(EXCHG.65).aspx Please, could you advise me one more time???? :o) THX Christian You basically want to do a put like
http://msdn.microsoft.com/en-us/library/ms878112(EXCHG.65).aspx then instead of moving the message you need to set a couple of mapi properties to make it look like it has been sent (i listed the mapi props in that EWS post). The only problem with this in WebDAV is you lose the sent time which you don't in EWS. Cheers Glen Show quoteHide quote "Christian Weihs" <c.weihs'a@t'tiefenbacher.com> wrote in message news:e7G4r6vzJHA.5728@TK2MSFTNGP03.phx.gbl... > Hi Glen, >>> >>> The exchange 2003 have to stay in our environment because we need it for >>> smtp routing what isn't available on exchange 2007. So it would be ok to >>> do it on this server... >>> >>> I will have a look to your examples how I get access to the mailbox >>> server and than I will try to adjust the script... >>> >>> http://gsexdev.blogspot.com/2008/10/vbnet-sample-for-getting-number-of.html >>> >>> Do you have some other examples which could assist me? >>> >>> THX Christian >>> > > Now I am able to access the Exchange store and I can check messages and > folders but I am not able to create a new email via webdav. I didn't found > an example or a methode on the msnd website: > http://msdn.microsoft.com/en-us/library/aa142917(EXCHG.65).aspx > > Please, could you advise me one more time???? :o) > > THX Christian > > Hi Glen,
do you have any idea why I only get the incoming and not the outgoing emails? http://msdn.microsoft.com/en-us/library/aa494203.aspx I configured the SmtpReceiveAgent which should start the script to all emails?!?!? THX for a short feedback!!! Christian :-) SmtpReceiveAgent will only get fired when the Hub server your running it on
receives a message via SMTP if you run this on a edge server you will get inbound and outbound (hub to edge communication is over SMTP).If its a hub server mailbox to hub traffic is over Mapi/RPC so that agent will never fire for outbound messages you need to use a router agent in this case. Cheers Glen Show quoteHide quote "Christian Weihs" <c.weihs'a@t'tiefenbacher.com> wrote in message news:OzXh1kV2JHA.3544@TK2MSFTNGP04.phx.gbl... > Hi Glen, > > do you have any idea why I only get the incoming and not the outgoing > emails? http://msdn.microsoft.com/en-us/library/aa494203.aspx > > I configured the SmtpReceiveAgent which should start the script to all > emails?!?!? > > THX for a short feedback!!! > > Christian :-) > > Ok, I didn't read that the SmtpReceiveAgent is designed to respond to
messages coming into and going out ONLY on a EDGE! I thought it fire on every SMTP event. So I will configure a RoutingAgent and implement some logic to determine that I only get incoming and outging emails. Thanks a lot for your help and best regards from rainy germany! Christian Hi Glen,
sorry it is nearly a never ending story! I configured the Routing Agent and it works for incoming and outgoing messages. But when I have a look to a copy of an outgoing message I see only a winmail.dat-mail... Could you tell me the reasen for that? Do you have a solution? THHHAAAANNNKSSS for all... Best regards, Christian There is no real easy answer to this if your processing Outgoing message in
a router agent on a Hub server the message will be in TNEF format. You cant post this format directly to EWS nor can you convert it from TNEF to MIME very easily see http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/thread/f7b88088-11f9-42ed-bdc4-ef7ba69fea63/. One idea maybe to add a BCC in the envelope header so the message will also be delivered to a mailbox and then do any processes of the message out of this mailbox. Actually that maybe a better way of do the whole thing. Cheers Glen Show quoteHide quote "Christian Weihs" <c.weihs'a@t'tiefenbacher.com> wrote in message news:%23cILkSF5JHA.1380@TK2MSFTNGP05.phx.gbl... > Hi Glen, > > sorry it is nearly a never ending story! I configured the Routing Agent > and it works for incoming and outgoing messages. But when I have a look to > a copy of an outgoing message I see only a winmail.dat-mail... > > Could you tell me the reasen for that? Do you have a solution? > > THHHAAAANNNKSSS for all... > > Best regards, > Christian > >
Other interesting topics
How to access attachment property using CDO
Re: outlook cache mode MAPI and Outlook Anywhere EWS and Exchange 2003 Retrive Email's From Exchange Server WebDAV connection using Forms Based Authentication Fails (Response asking for Basic Authntication?) Retrieving Tasks and Calendars from Exchange Server 2003 using .NE Auto reply from exchange using template (preserve the subject) Exchange Web Services Migration Regevent.vbs error: public folder event sink registration failure |
|||||||||||||||||||||||