directpush protocol questions (exchange replacement possible?) - Windows Mobile Development and Hacking General

I am using mail2web free service to have my mail pushed to my WM5 device, but I don't like the idea of forwarding my private email to a company I don't know and I don't trust.
Normally I have my email at a home mail server running linux, and I was wondering if there's any open/free solution compatible with directpush technology to replace the need for an exchange 2003 server.
If it does not exist (i have been searching and couldn't find it), what is preventing someone of writing a free replacement? patent issues? authentication issues? I haven't sniffed the protocol yet, but I think it's impossible that no one has thought about it before... wouldn't you like to have your home imap server pushing your inbox to your PocketPC phone? If the protocol is not very obscure it should be easy to write a daemon that does it...
any thoughts or experiences?

Kerio Mail Server has the push compatibility.
Not free though, but it is an alternative to Exchange.
Their latest beta supports it. I reported a bug to them re: contacts getting corrupted but they say they fixed that in the latest build.
Can't retest now since that server is at another site I won't be visiting for a while.

Hmm the directpush "protocol" is pretty trivial it shouldn't be impossible to implement an open alternative.

I installed the latest Kerio MailServer yesterday. It works great!
Especially nice is that it runs on XP as well as Linux. Too bad about the price!

pof, have you had the chance to sniff the protocol?

not yet ivorh, been too busy with many other things, but this is still on the queue

sniffed
Heh, got bored so I setup an exchange account and sniffed the packets.
I'll go through them and post some details when I get a chance.

great ivorh!
Can you attach a capture in pcap format?

update and thoughts
Pof,
Hmm, ok a bit more thinking and digging and I'm not sure implementing an open alternative directly is that useful. Let me explain why:
The direct push only works with the outlook exchange active sync. When the device gets a "direct push" byte, it triggers a sync with exchange - the functionality is tightly bound together, and as far as I can tell you cant dip in and get it to do something else. So to get it working you would need a server providing the exchange http interface. This wouldn't be impossible but would need a lot of effort for little benefit.
I took a look at the open-exchange but that doesn't seem like an ideal solution since it would require a completely different server installed rather than IMAP or POP and as far as I can tell the Outlook connector isn't one of the open-source components anyway.
Now what I'm currently thinking would be a neat workaround would be to implement a custom "direct-push" to basically do exactly the same, have a client app on the device open an http connection to a server running, er, "OpenPush" if you like... use exactly the same technique of a keep-alive connection and occasional heartbeats, but on a message notification on the client get the client to trigger an IMAP pull.
Now this is where I need some advice.... I haven't done any Windows Mobile development yet, so can anyone tell me what sort of API is available to the messaging app? Can you/how do you trigger a mail pull? (oh someone please tell me it's not the same horrible old MAPI interface??).
PS I've just been capturing the data using a simple http proxy actually, I'll make some samples and upload them with descriptions.
Cheers,
Ivor.
http://www.ivor.it

Hi pof,
try funambol. It was formerly known as Sync4j. I once found it when I searched a complete sync solution that I could implement in the mailserver of my company. We are using kolab so I only tried the old Sync4j cause there is a kolab connector available for v2.3.
v3.0 implements (real) Push-Mail. Microsoft Active Push works with a http connection that is opened by the client. Funambol Push-Mail connects to a port the client opens. I didn't want to test any further cause I'm using a Wapflat and thus only get an internal IP and have to use a proxy.
http://www.funambol.com/opensource/
Perhaps this is what you are searching for
What I forgot to say: For funambol you install a java program on your phone wich will insert the received mails in your Pocket Outlook

Yay!
Pof,
Ha! Ok I've whipped up a version 0.0.0 of OpenPush. and it works rather nicely!
Basically it consists of two parts one is an app that runs on the mobile and operates in the same manner as DirectPush. It opens up a socket connection to the server and waits for a notification byte. If it recieves a byte it kicks off a mail retrieval.
The other is a daemon that runs on the server and watches for a change in the users mailbox if it changes (i.e. a mail has arrived) then it pops a byte down the socket.
It just needs finishing now...
Currently the daemon is just an app that listens on a dedicated socket. I plan on turning it into a mod_perl module and using http keep-alive in the same fashion as directpush.
Regards,
Ivor

ivorh, that sounds cool!!
I had a look at funambol but seems too 'bloated' for my needs, I think your OpenPush will be more tight to what I was looking for, so if you want a beta tester just send a link to it
Is there any specific server configuration? I am running a Gentoo server with courier-imap, sendmail and apache2.

Any chance you could extend the daemon so other programs can tie into your new-item notification? It would be cool to write a program that can keep files synchronized over-the-air with a desktop machine using push sychronization.

Pof,
Yeah it's just a prototype at the moment. So I need to write it properly next. At the moment the requirements are simply "perl". It's independent of mail system, it simply monitors a directory/file you give it for changes.
I'm going to write it to be a mod_perl module for various reasons, so the requirements will be just apache and mod_perl.
I'll hack some more tonight and try and get a 0.0.1 ready.
aatreya,
Well I'll keep it simple for now and just doing one job well.

Sound interesting to me.
I am new to this. Pardon me for some questions.
Do I need to buy a server at home?
This server can be any OS?

I am really happy to see some people trying to do just about the same I intended to. Today I started experimenting with Open-Xchange. I also have a Gentoo server that provides an ebuild for Open-Xchange, but after a bit of browsing it just seems like the thing MS Exchange and OX have in common is the similarity of their names. So installing OX and doing all the Exchange stuff with it does not seem to be an option.
So I looked into Funambol - sort of again. About a year ago I already tried to get Sync4J running to sync my SyncML phone. I did not succeed, but that just makes me eager to try it harder this time.
I also have to use a Proxy-Server for my GPRS connection but I want to have it working via WLAN, too, hence without proxy and the whole tunneling disco.
PS: Ivor, I am glad to meet You once again. When our roads crossed the last time, You just figured out how to get the CLE266 MPEG2 stuff working, respect!

A very rough pre-alpha version should be ready this weekend. I can only apologise in advance for the quality of my WM5 app!
But it's "working for me".
CWKJ,
At the moment the "server" is a simply perl app that watches for changes to a directory or file so its pretty portable. I run it on linux since that's what my mailserver is on.
As for needing a server at home... well its entirely up to you, really you want the server running wherever your mail is retrieved from.
If the app/system gets a bit more polished and advanced you might even find independent ISP's willing to add it as a service.
rabinath,
Heh! Small world.

I'd also like to be considered for Beta testing when available,
I run Ubuntu 5.10 Server at home, hosting 5 domains for myself, and would Love to not have to forward them through mail2web anymore as I don't like to reply because it will go through Mail2Web. I know I can create a separate "account" in Pocket Outlook but you can only have 5. I need more than that...

with direct push over the o2 wap proxy all https conections are closed after 2 min. this is becausse all 2 minutes a new sync is needed. This eats much battery. So why is it nnot possible to mak e a ppc client that just sends the current ip adsress to the client on the server. and the server just push the email to the known ip adress. The client on ppc just has to send a new ip in case it changes. this wouldt be much better for battery life.

Thats the reason Exchange-Activesync works the way that it does. The server sends out a text message that is handled at the system level on the PPC, and this is basically an instruction to sync with the server. No unneeded traffic just to check if there is anything new.
Most Celllar service providers are using NAT technology so reporting your IP address to a server and telling it to make a connection to that IP, would just be telling the server to connect to the "gateway" back into the Cellular network. A text message sent to what is called the "SMTP Gateway" for each service provider will get to the phone no matter if the phones IP changes.

Related

Push Email with Exchange Server?

Hi all, im kind of new to this but i just read about push email with exchange server and i was wondering how i could use it with my mda vario. I've already installed an updated rom with push email but i dont know how to use it. can any one fill me in on this? thanks for any help.
You need a Exchange 2003 server with at least SP2 installed. Also a UMTS/GPRS connection because is not working over WIFI.
Bitfrotter 8)
Go to www.mail2web.com, sign up there. Than put the settings from the website in the Exchange Server settings in Active Sync on your PPC. Set your current email address to automatically forward your email to your mail2web email address. Enable GPRS and enable push email from the Comm Manager and bingo, push email is yours.
Ok, ive already signed up with mail2web but i want to automatically retrieve hotmail emails. i don't see an option on hotmail to forward all my emails to mail2web. am i missing something here? sorry, im inexperienced and all and these are probably lame questions and all. but please help me out. after reading that article i got hyped up in doing this. thanks for any replies.
Bitfrotter said:
You need a Exchange 2003 server with at least SP2 installed. Also a UMTS/GPRS connection because is not working over WIFI.
Bitfrotter 8)
Click to expand...
Click to collapse
I've gotten DirectPush to work over WiFi... Maybe that was an earlier ROM version though... I don't recall the circumstances under which I got it to work.
MS says that Direct Push does not work over WiFi. WiFi does not allow disconnected connections (in other words, a connection that allows for the data stream to be suspended). If WiFi did it, it would require a continuous connection that would drain the batteries at a very rapid pace.
Setting up Exchange for Direct Push is pretty easy. I set up ours in about 5 minutes.
One of the coolest things you can do with a correctly configured Exchange 2003 system is with the Mobile Admin pack (free download from MS). It allows you to tell the PDA that it needs to "self-destruct" in case the phone is stolen. A remote wipe will do a hard-reset on the phone, deleting all data not stored on an external SD.
I usually get my email on the MDA faster than Outlook on my desktop.
If any Exchange admins are out there, I can post how to set it up if anyone needs help.
exchange/activesync
Yes please!
Hotmail has deleted the possibility of forwarding mail automatically a few years ago in the free version, only Hotmail Plus subscribers can use this option. With gmail however it is still free. So a basic hotmail account will not be able to use Push over Exchange. You can however sign in to MSN Messenger on your device and will then be notified as soon as an email arrives on the hotmail server. This will cost you extra data charges though, since contacts coming online will also result in data transfer to your device.
Romp said:
MS says that Direct Push does not work over WiFi. WiFi does not allow disconnected connections (in other words, a connection that allows for the data stream to be suspended). If WiFi did it, it would require a continuous connection that would drain the batteries at a very rapid pace.
Setting up Exchange for Direct Push is pretty easy. I set up ours in about 5 minutes.
One of the coolest things you can do with a correctly configured Exchange 2003 system is with the Mobile Admin pack (free download from MS). It allows you to tell the PDA that it needs to "self-destruct" in case the phone is stolen. A remote wipe will do a hard-reset on the phone, deleting all data not stored on an external SD.
I usually get my email on the MDA faster than Outlook on my desktop.
If any Exchange admins are out there, I can post how to set it up if anyone needs help.
Click to expand...
Click to collapse
that would be awesome if you know of a tutorial anywhere on this..
so by creating an exchange server as romp said, you can sync any email including hotmail? well that's really a bummer that microsoft disabled forwarding on hotmail. Its mainly my primary email which all my friends/family know. so it would be a miracle if anyone knew how to sync hotmail without subscribing to their hotmail plus.
Well, getting outside emails are a bit more complex. This is usually for a business, but there are plenty of POP-to-Exchange plug ins that would allow getting Hotmail emails. Of course, you would need the Hotmail Plus for the POP.
http://www.slipstick.com/exs/popconnect.htm
My answer was more concerning the Exchange Direct push question, not the hotmail one.
Where I work (yes, I did set up the Exchange system) we have GFI spam filtering and virus filtering (www.gfi.com) and they have a POP2Exchange bridge included. It just checks the account, downloads any POP emails, and drops it in the right mailbox.
Exchange is a complete system, not just mail. It has webmail, Windows Mobile direct push, calendar, contacts, and more. Unless you are in a company with Exchange or Small Business Server, its not a cheap thing to do for a home network.
If you DO have Exchange at your office, run to the IT guy and hurt him until he sets your phone up on it. Its all the functionality of Blackberry and more, built into Exchange.
I'll write that tutorial, g0nk.
ok so if we go the mail2web route... i dont need to install exchange 2003 on a pc myself? does it only work on windows server 2003?
im interested in doing this at my job but i want to make sure it is not too difficult
edit.. well we have our own domain email addresses so the [email protected] is not an option..
any suggestions?
Romp said:
Exchange is a complete system, not just mail. It has webmail, Windows Mobile direct push, calendar, contacts, and more.
If you DO have Exchange at your office, run to the IT guy and hurt him until he sets your phone up on it. Its all the functionality of Blackberry and more, built into Exchange.
I'll write that tutorial, g0nk.
Click to expand...
Click to collapse
1) Agreed
2) I am the IT guy and it don't work on our server - the rootcertificate won't install to the PPC - an MS acknowledged problem............
3) Please forward ASAP !! Thanks !! :lol:
Is it a self published cert? Because you CAN get any externally issued cert to work just fine. We use a $15 GoDaddy cert with no problems.
The big screw up most people have with the cert (myself included) is that the cert is not correctly installed, even though it says it is.
Cheaper certs are called "Chained" certs. All certs need a path back to one of the big cert companies. So, companies like GoDaddy get approved to be second level cert issuers. IE on the PC will look at the cert and track it back to the main cert issuer. For example, the cert on GoDaddy goes from GoDaddy, to Starfield, to VeriCert. The VeriCert certificate is installed on all PCs.
Anyway, the problem is that the PC can follow an undefined cert path, the PPC can't. If you install the cert on the server, IE on the PC can figure out the whole path, PPC can't. So, the big thing is to make sure the MIDDLE CERTS are installed on the server. Even though everything seems fine, chances are that the middle ones are not (in this case STARFIELD)
The easiest way to find out if the cert is valid or not is try to get to your webmail on PIE. If you get a message about the cert, your server is not set up completely.
For my server, I had no luck until I found the Intermediary Cert and installed it. https://certificates.starfieldtech.com/Repository.go
Once that was done, my GoDaddy cert worked on the PPC and syncs went perfectly. Once the server has all the certs in the cert path installed, the PPC can validate each level. Until then, its clueless. Most people think you need to install the cert on the PPC. Its the server that needs it.
Does the self published cert only cause problems with direct push? I've got the "old" polling method working. I created a root CA on my server to sign the cert created for the web server and then turned that root CA into a CAB which was installed on the PPC. I should say that my phone doesn't have an AKU 2.xx rom on yet so I've not tested push mail.
This is all outlined in the following doc :
http://www.microsoft.com/technet/itsolutions/mobile/deploy/msfpdepguide.mspx
Also look at http://support.microsoft.com/kb/817379 if you are running a non sbs2003 exchange server in a configuration that doesn't have a front end/back end exchange server configuration. As there are some minor tweeks needed to the registry and to the default web server setup.
If you can do a remote Activesync, then DirectPush will work just fine.
A newbie Direct Push question:
I upgraded my 8125 ROM to the official Cingular June 19 version, and direct push SEEMS to be working great my my Hosted Exchange provider. When new email comes in to my Exchange server and/or a task / calendar / contact is changed on the desktop Outlook client, those get pushed quickly to the 8125.
Problem is, it doesn't seem to work in reverse. For example, IF I get an email pushed to me on my PDA, I read it and delete it on my PDA.....that deletion action is NOT getting syncronized back to my Exchange server. Is that by design, or is indeed something wrong?
Thanks in advance!
not sure if it helps, but you can change when pocket outlook deletes mail, there are 3 options:
on connect/disconnect
immediately
manually
I dunno if changing that will help you at all, but its in the pocket outlook options.
I'll shut up now, in case I misunderstood
jmel said:
not sure if it helps, but you can change when pocket outlook deletes mail, there are 3 options:
on connect/disconnect
immediately
manually
I dunno if changing that will help you at all, but its in the pocket outlook options.
I'll shut up now, in case I misunderstood
Click to expand...
Click to collapse
I appreciate your reply, but my question is beyond that......it centers around Driect Push.....my thinking is, regardless of that setting you referred to, once the email is deleted on the PDA, the PDA should "reverse-push" that deletion to the Exchange server, and mine does not seem to be doing that.
I hope that is a little clearer?
No, his answer was right. The reverse of the Push is not the same. You have to set the options as Jmel suggested. Its basically to save data.
This allows you to go through your mail, delete all your spam and crap, then update the server. Doing so immediately would be a waste. Recieving/sending emails is considered vital, deleting them...not so much.

Sure to cause wrath: Reverse Engineering ActiveSync with Exchange server

Hello everyone!
As you can see by my profile, I'm a rather new member of the XDA-Dev community, and also a new owner of an HTC Tytn. I love it.
I also love open sourced or at least free software.
My problem is: I'd love to have push based e-mail feeding off of my plain old IMAP and/or POP account hosted wherever.
Of the two IMAP IDLE capable clients on WM6 (I'm using LVSW) both feel like a piece of **** along with an attached price tag. One of them was also last updated in early 2006.
I've been looking at WM Outlook and Exchange syncing. I'm thinking about implementing some sort of an interface that would provide Outlook style ActiveSync front end (hey, it's just WebDAV) to a simple IMAP/POP3 account in the background.
I'll probably start working on this just for the kicks anyway, but... would anyone else be interested in seeing/using something like this?
ivanstojic said:
Hello everyone!
As you can see by my profile, I'm a rather new member of the XDA-Dev community, and also a new owner of an HTC Tytn. I love it.
............
I'll probably start working on this just for the kicks anyway, but... would anyone else be interested in seeing/using something like this?
Click to expand...
Click to collapse
There is software called emoze. This relies on your desktop & outlook downloading the email then Emoze sends the data to you PDA over the cell network.
The way i think that would be good is you would need a software client running on your desktop that polls your POP3 server for new headers. When it gets one it sends your PDA a token telling it to go and d/l its pop.
Im thinking of writing one cause i want it to detect if its cradled. I only want my e-mails forwarded to my phone when its not cradeled.
Just some thoughts. But if its in c# ill be happy to try help where i can.
Shaun33 said:
There is software called emoze. This relies on your desktop & outlook downloading the email then Emoze sends the data to you PDA over the cell network.
Click to expand...
Click to collapse
First off, I'd like to avoid the whole using-the-desktop thing. The mails are accessible on the server, and can stay there until your desktop client picks them up. Ideally, you would use IMAP and just leave the mail on the server as long as you need it, thus having it both accessible from your desktop and your mobile client.
The approach I'm thinking of would emulate an Exchange server. You would configure this server the same way you configure outlook syncing with a real Exchange server on your phone - thus eliminating any need for development or hacking on the client side. Everyone would just be using their default messaging client installed on WM.
ivanstojic said:
First off, I'd like to avoid the whole using-the-desktop thing. The mails are accessible on the server, and can stay there until your desktop client picks them up. Ideally, you would use IMAP and just leave the mail on the server as long as you need it, thus having it both accessible from your desktop and your mobile client.
The approach I'm thinking of would emulate an Exchange server. You would configure this server the same way you configure outlook syncing with a real Exchange server on your phone - thus eliminating any need for development or hacking on the client side. Everyone would just be using their default messaging client installed on WM.
Click to expand...
Click to collapse
So from My understanding this is what we got.
Code:
~ Project ~
CLIENT | HACK'D | <-----> IMAP
A/Sync <---> | Server |
WM6 | APP We Write | <-----> POP3
That should be possible but the reason that your able to recieve it in two places is because the exchnage server is the mailbox essintally. And your desktop account is also attached to the exchange server(someone jump in if im wrong) this means that it knows when something is deleted on your desktop.
So we would have to emulate both the Device and Desktop exchange server functions.
Other way is to just put a wrapper around a popserver. So it will only send the emails to the desktop once, then keep the e-mails for the device.
eg
Code:
****Check POP3/IMAP server every x mins
New Email
D/L and Store
Ping PPC Client
PPC Downloads
Flaged as PPC received
Desktop POP3 checks pop wrapper
Because the exchange server has the builtin pop client you will never be able to get true e-mail unless you create a pop3/imap server that has the PPC ping functionality built into it, you will always have the **** step.
Just some thoughts ...
ivanstojic said:
First off, I'd like to avoid the whole using-the-desktop thing. The mails are accessible on the server, and can stay there until your desktop client picks them up. Ideally, you would use IMAP and just leave the mail on the server as long as you need it, thus having it both accessible from your desktop and your mobile client.
The approach I'm thinking of would emulate an Exchange server. You would configure this server the same way you configure outlook syncing with a real Exchange server on your phone - thus eliminating any need for development or hacking on the client side. Everyone would just be using their default messaging client installed on WM.
Click to expand...
Click to collapse
you dont need to 'hack' anything... is you look at the Microsoft Exchange 2007 SDK you can write your own libraries that get called on incoming mail etc... no hacking required... how do you think Blackberry Enterirpse Server and Goodlink Server work??
The whole idea is that I want nothing to do with Exchange in the software, except to emulate it's ActiveSync features and push e-mail. No SDK, no libraries, nada.
I don't have any problems polling the POP3 server every few minutes. With IMAP it's much easier considering that a lot of IMAP servers support IDLE.
Basically, the architecture would be exactly what Shaun33 described/drew in his post.
ivanstojic said:
The whole idea is that I want nothing to do with Exchange in the software, except to emulate it's ActiveSync features and push e-mail. No SDK, no libraries, nada.
I don't have any problems polling the POP3 server every few minutes. With IMAP it's much easier considering that a lot of IMAP servers support IDLE.
Basically, the architecture would be exactly what Shaun33 described/drew in his post.
Click to expand...
Click to collapse
Ok best idea is if you have the time.
1. Install Exxhange server and pair your PPC to it.
2. User packet monitoring software such as ethereal to monitor the data going back between the server and the client the best fun is going to be the fact that is SSL. But there is an option to disable the SSL then you monitor port 80.
If you post a capture file i would be willing to look into helping you develop it.
Shaun33 said:
Ok best idea is if you have the time.
1. Install Exxhange server and pair your PPC to it.
2. User packet monitoring software such as ethereal to monitor the data going back between the server and the client the best fun is going to be the fact that is SSL. But there is an option to disable the SSL then you monitor port 80.
If you post a capture file i would be willing to look into helping you develop it.
Click to expand...
Click to collapse
Ethereal isn't called Ethereal any more, you do know that? It's been known as Wireshark for a while now. Anyway, the protocol is (almost) standard WebDAV protocol with some strange extensions.
I'm working on getting clean dumps of various bits of functionality. Will report soon!
hi guys,
i got to know about one website which is provide push mail for pop3 account for free, i tested it on JASJAR and its working fine, you can try it here www.consilient.com may be it would be helpfull...
This certainly sounds interesting to me! Do you still think it is doable?
Sounds cool - like you said, it's all webdav oriented, and from IIS logs, getting the content is fairly easy to construct. You won't have to worry about matching up device IDs, etc, so you can ignore that and concentrate on the username with what verbs are being used (foldersync, sync, getestimate, etc)
One thing may get you is the initial connection - after configuring, it will check to see if theres a policy to set on the device after checking the user, not sure how activesync on the device will handle it if it can't get to that.
I always think its funny that MS decided to call this "push" technology, when its just the device constantly polling (probably just an xml change file, i seem to remember something like that)
Anyway, good luck

Direct Push - Connects & Syncs, but Inbox remains empty

I've searched and searched, but I can't seem to find anyone with this problem.
Basically, I'm trying to get my new Treo 750 to sync over wireless with my Exchange server. I run the Exchange server from my own house, on it's own domain. I've upgraded the Treo 750 to WM6. I previously did not try wireless sync on WM5. My Exchange server is 2003 SP2.
At first, I tried connecting via SSL only to get a message about the certificate not being valid. After fighting and fighting with trying to get the cert on the phone, I finally gave up and disabled SSL on the device in an attempt to connect.... via any means possible.
What I first thought was success has turned into another problem. I know I'm communicating with the server, as the policy from the domain controller made me set a device password. It was at that point that I knew I was getting somewhere. Now, when I hit "sync", I see it checking for changes. At the bottom of the screen, it'll run through each step: Contacts, Calendar, Email and Tasks.
Let me see if I can describe this..... It'll briefly pause at say... 0/80 for my Inbox, then count (very quickly, in large increments) till it hits the 80 and move on to the next item in the synchronization list. This cycle restarts after 5-10 seconds.
When I go to look in my Inbox, it's empty. The only thing I see is at the bottom: "Outlook E-mail 0 Items". Same with Contacts, Calendar, etc...
Now here's the kicker. If I send myself a test email from an outside account... say, Gmail, the sync app will then show "Email 0/81", then tick up to 81 and move on to the next item. However, nothing is downloaded. I can pull up a list of all the personalized folders I've created for my mailstore, and they're all there. I can "subscribe" to them, yet they remain empty as well.
I'm completely at a loss. I don't know what else to do at this point, and it's proving to be a difficult thing to search for. Any advice you can give would be very much appreciated....
As I said, this sync thing is happening pretty much non-stop. It'll rotate through the 4 steps (email, contacts, calendar, Tasks), wait a few seconds, then start it all over.
I've noticed that no other net apps work while this is happening. I actually have to go into ActiveSync and hit stop. After that, net applications (IM, PIE, Opera, etc...) work just fine.
Here is a (truncated) log from the device.
That looks pretty similar to the log I get from my device when I ActiveSync to Exchange. Jave you tried doing a backup and then hard resetting? I find that DirectPush is very finnicky with when it does and doesn't work but may just be my server.
Actually, to completely eliminate the device, I setup the MS WM6 emulator from a computer on an outside network. I got exactly the same thing as on the device. That pretty much tells me it's something on the server.
Here's another tidbit that might help. Before getting this phone, I setup BES Express on my Exchange server. I had problems with it working at first, and read through several guides before I had permissions working right. To this end, I made a lot of permissions-based changes on the Exchange server.
Could this be a permissions issue? How can I check if the permissions are correct?
Ok here's your problem, running another MAPI client on an Exchange server is NEVER a good idea. If you shut down the BES services and then reboot the server, what happens? Also, have you tried checking the Exchange Server event viewer for any info on what's happening server side?
Urthwhyte said:
Ok here's your problem, running another MAPI client on an Exchange server is NEVER a good idea. If you shut down the BES services and then reboot the server, what happens? Also, have you tried checking the Exchange Server event viewer for any info on what's happening server side?
Click to expand...
Click to collapse
Very good point. I hadn't even consider that. I don't even need it anymore.
That being said, what is the best way to go about uninstalling BES Express w/o jacking up the rest of the Exchange system? Also, have you ever actually heard of this causing the problem I'm experiencing? You sound pretty darn certain when you say: "Ok here's your problem". Each time I find or come up with a possible solution, it never seems to make a difference. Sure, my Exchange installation is "cleaner" and more standardized with each solution I try, but it never resolved the issue.
If you can provide me a decent guide or recommendation for uninstalling BES, I would appreciate it. Unless you have some better tips, I'm using these two pages as guides:
Perform a clean uninstall of the BlackBerry Enterprise Server
How to uninstall and re-install BlackBerry Enterprise Server on the same computer with minimal disruption
Ok, stopped all the services, uninstalled BES, deleted all related program directories, and removed all associated registry keys. Logged out of BESAdmin account and removed it from Active Directory.
I did all this from Remote Desktop, so the only thing left to do is reboot the server. I could do it remotely through command line, but it has a habit of freezing up during shut down (it's been doing it for years, doesn't seem to harm a thing). So I won't be able to reboot until I get back in town tonight.... just in case it freezes.
I have a few questions, though. Do I need to make any changes to MAPI (remove, stop, change, etc...)? I still need IMAP access for remote relatives, but I'm gonna get rid of that soon once I get them setup through the VPN.
Anything else I should remove/change?
Oh yeah, just for ****s and giggles, I tried synching again, both with the actual Treo 750 and also with a WM6 emulator on the remote server. I've also tried running the WM6 emulator from the same network as the Exchange server, just to eliminate the firewall, as Direct Push only seems to use ports 80 or 443, depending on whether you have SSL enabled or not.
Correct me if I'm wrong about the firewall ports.
Those are the same ports I have open, but much like yourself (and correct me if I'm wrong) just a casual Sysadmin. While I'm not entirely certain if BES is your issue, I'm inclined to think it may be a MAPI collision between the two. I haven't used BES myself so I can't really advise on the best method to uninstall, but I had a similar issue where my Outlook clients couldn't connect when I installed Outlook on the Exchange server. On another note, why set up VPN when you could just configure RPC over HTTP if you're running the server on Win2k3, it's probaly cut my support calls with users by aboyt 25%. If you'd like I can give you access to a server to compare it to, just PM me if you think that'd help.
I just saw that you also had IMAP open, that's definetly not going to be causing the issue, as I also have that running on my server and have people using it at this very minute. Also, have you tried checking on your device if you go into ActiveSync>Right Softkey>Options and then checking that the boxes besides Contacts, Calendars, Tasks, etc... are checked? I know it's stupid, but I've had issues like that before where I couldn't figure it out for the life of me.
Urthwhyte said:
Those are the same ports I have open, but much like yourself (and correct me if I'm wrong) just a casual Sysadmin. While I'm not entirely certain if BES is your issue, I'm inclined to think it may be a MAPI collision between the two. I haven't used BES myself so I can't really advise on the best method to uninstall, but I had a similar issue where my Outlook clients couldn't connect when I installed Outlook on the Exchange server. On another note, why set up VPN when you could just configure RPC over HTTP if you're running the server on Win2k3, it's probaly cut my support calls with users by aboyt 25%. If you'd like I can give you access to a server to compare it to, just PM me if you think that'd help.
Click to expand...
Click to collapse
I'm not 100% sure, but I don't think Direct Push uses MAPI at all, so I'm pretty sure it can't be a "MAPI collision", so to speak. I was able to completely remove BES w/o any issues. I rebooted the computer last night, just to be sure, and I'm still showing the same problem. ActiveSync connects and looks like it's synchronizing, but in the end, nothing is actually downloaded from my phone.
I really believe it has something to do with permissions. I say this, because I had a very difficult time getting BES to work. I had to mess with a lot of permissions to get mail flowing to my Blackberry. I can't be sure that I didn't goof something up in the process.
With that being said, everything else works just fine. I can use OMA. I can use OWA either HTTP or SSL (forms-based authentication disabled, of course). I can connect without issue from IMAP, or directly via Exchange over VPN, etc...
Urthwhyte said:
I just saw that you also had IMAP open, that's definetly not going to be causing the issue, as I also have that running on my server and have people using it at this very minute. Also, have you tried checking on your device if you go into ActiveSync>Right Softkey>Options and then checking that the boxes besides Contacts, Calendars, Tasks, etc... are checked? I know it's stupid, but I've had issues like that before where I couldn't figure it out for the life of me.
Click to expand...
Click to collapse
I have tried that. I've also tried changing the settings for email from 3 days, to all the other options. It will change the amount of emails ActiveSync "sees", but they still do not download to the phone.
Oh yeah, as far as RPC over HTTP goes, it's one of those "I've always used..." things.
What are the advantages of RPM over HTTP?
I'm not quite sure it's a permissions issue, because as far as I know ActiveSync only uses the standard exchange accounts/services,+ a few virtual directories. What you can try doing is deleting the ActiveSync virtual directory, and then restarting the IIS and Exchange System Attendant services and see if that helps.
RPC over HTTP alleviates the need to have to login to a VPN to check email, it also makes it much easier to configure the client, as they only have to enter their Username+Password and enter the FQDN of the server.
Urthwhyte said:
I'm not quite sure it's a permissions issue, because as far as I know ActiveSync only uses the standard exchange accounts/services,+ a few virtual directories. What you can try doing is deleting the ActiveSync virtual directory, and then restarting the IIS and Exchange System Attendant services and see if that helps.
RPC over HTTP alleviates the need to have to login to a VPN to check email, it also makes it much easier to configure the client, as they only have to enter their Username+Password and enter the FQDN of the server.
Click to expand...
Click to collapse
I deleted the ActiveSync virtual dir (which actually had a much longer name), as well as the OMA virtual dir.
Now I get this message when I try to connect. I guess I need some help on rebuilding it now... heh.
As for RPC over HTTP... brainfart. I knew what it is, but I wanted access to remote shares.
As far as permissions go, I'm pretty sure it's not the problem as well. I just created a brand new user and had the same thing happen.
Flapjack said:
I deleted the ActiveSync virtual dir (which actually had a much longer name), as well as the OMA virtual dir.
Now I get this message when I try to connect. I guess I need some help on rebuilding it now... heh.
As for RPC over HTTP... brainfart. I knew what it is, but I wanted access to remote shares.
As far as permissions go, I'm pretty sure it's not the problem as well. I just created a brand new user and had the same thing happen.
Click to expand...
Click to collapse
Did you try stopping and then starting the Exchange System Attendant and IIS services, the folders should come back automatically. If all else fails, reboot and see if the folders come back.
Urthwhyte said:
Did you try stopping and then starting the Exchange System Attendant and IIS services, the folders should come back automatically. If all else fails, reboot and see if the folders come back.
Click to expand...
Click to collapse
I know that trick, but if there is anything wrong in the metabase, it will not be overwritten.
I'll be using this guide to completely blast out and rebuild all the owa-related folders:
http://support.microsoft.com/kb/883380/en-us
Ok, I rebuilt everything using Method 2 in the above-linked guide.
Now, I'm getting support code 0x85010014
This pages says the cause is SSL being enabled on the main site, but it's definitely not. There are other vdir pages that have SSL enabled, but none of the default MS dirs... only personal ones I created for other things.
http://www.messagingtalk.org/content/479.html
Is there any chance that you have FBA enabled, if you do theres supposed to be some way that you can trick ActiveSync to use a different folder or something. It wasn't really worth it to me, so I just ended up disabling it.
Urthwhyte said:
Is there any chance that you have FBA enabled, if you do theres supposed to be some way that you can trick ActiveSync to use a different folder or something. It wasn't really worth it to me, so I just ended up disabling it.
Click to expand...
Click to collapse
That's the thing. I don't even have a certificate on the site right now. I got rid of the self-issued one, and now I'm waiting on my GoDaddy one. So I don't have FBA enabled. That's why that messages seems so weird...
Hmm, that's odd. I got the same error when I first configure ActiveSync, but now I forget what I did to resolve it. Also, is there any chance you have some sort of IM application, such as Google Talk or AIM? It's a bit easier to resolve these things if you can have a more back and orth communication then a orum post.

Active sync - Exchange: SSL over a non-default port

My ISP blocks all ports below 1024 so I had to setup my SBS2003 Exchange server to run on port 8080 (HTTP) & 4443 (HTTPS), which works perfectly (tested locally & on remote locations).
When I add the correct secure portnumber to the server address (ActiveSync > Tools > Configure Server Source), ActiveSync cannot find our Exchange Server. When I remove the portnumber everything works fine as long as I'm on my local network.
I enter it like this: exchangeserverdomain.com:4443
I have OWA running perfectly by using the same external server address:<port>, and all needed certificates are on my WM6 device (it's the HTC Touch Dual).
Seems like ActiveSync doesn't like portnumbers.
Any tips?
Me 2
I'm having a similar problem.
Anyone can help?
Many thanks in advance.
Pozi.
If anyone has found a solution for this, I sure would appreciate knowing. As I'm sure you found, older stuff retrieved by Google makes it clear that MS just didn't provide support for ActiveSync on custom ports in previous WM versions, but couldn't they have remedied this oversight by now? Reg key?
Active sync - Exchange: SSL over a non-default port - Solved in WM65 ?
Any idea if there is a workaround for this problem in WM 6.5 ?
thanks,
Koen.
No, I don't know if WM6.5 finally added the ability to specify port number for Activesync server.
We solved this need by using "SSL host headers," which permit multiple IIS sites to use the default SSL port 443 with different host names. Although the IIS (6.0) GUI doesn't provide this capability, it can be done at the command line using adsutil.vbs found in Inetpub\adminscripts. It requires a wildcard SSL certificate, is a little tricky to get right, and results in a misleading error message in the event log every time IIS starts, but it does work reliably.
See:
http://www.microsoft.com/technet/pr...108-b1a7-494d-885d-f8941b07554c.mspx?mfr=true
ISP blocks all well-known ports - server activesync not working
thanks for the information, the configuration of Exchange is indeed not an issue.
Problem is that my ISP blocks all well-known (service) ports like 443,...
I would like to configure server activesync to use a different port (above 1024).
The Activesync interface on Windows mobile does not allow to enter a port number to specify the protocol.
eg. remote.company.com:4433 is automatically changed back to remote.company.com.
Any idea of a reg-key on WM to change the port to use for server activesync ?
If there is a way to do that in WM65, I don't know about it.
What kind of ISP "blocks all well-known ports"?
Good luck.
Not a solution per se but could you use SevenBeta to get your mail pushed? i think it works as long as you can get to the OWA server from the device. probably wouldn't give you contacts but at least you'd get mail while out of the office.
It's not Exchange, but the client...
I dislike it's come to this but it's true, the iPhone handles this over custom ssl ports just fine and I have not come across anything else that does. I do not know why. With the iPhone or iPod touch too I'd guess, you just enter your email address and password. It tries the regular ports and fails, and where you enter the server you enter your port like servername:customsslport and then you have full active synch abilities, synched email, all your subfolders, and the option to synch calendar and address book too.
I recently tried an android phone and looking for a solution, at this very site found out windows phones couldn't do this either... Developers have tried to give google this code correction but they won't accept it for whatever reason. I ended up using a tether to my old iPhone just to get decent ActiveSynch over custom SSL ports until I gave in and took back the Atrix for the newer iPhone, as my old phone was falling apart and was the older slower one. I've tried 2.1 & 2.2 Android phones and when you try to enter the port using serverort syntax you get invalid server format or the save button just gets grayed out until you remove the port. There's a few buggy market apps that sorta work in a limited way. It's possible the Blackberry may allow custom ssl ports on Exchange synch setup too, but I don't know, only that Windows and Android phones had issues with this but it works perfect on the iPhone, so it can't be a limitation of Exchange exactly. I haven't run into any good desktop clients for this, but to access full mobile email, synching even sent items and pushing select custom folders, calendar and contacts the iPhone truly synchs all these fine by entering the same port you use for custom OWA ssl in the Exchange email setup. I wish even desktop Outlook handled custom ssl port synching this well, and I'm not sure how the iPhone does it, as it seems very lightweight.
http://forum.xda-developers.com/showthread.php?t=602494
Lukasss said:
My ISP blocks all ports below 1024 so I had to setup my SBS2003 Exchange server to run on port 8080 (HTTP) & 4443 (HTTPS), which works perfectly (tested locally & on remote locations).
When I add the correct secure portnumber to the server address (ActiveSync > Tools > Configure Server Source), ActiveSync cannot find our Exchange Server. When I remove the portnumber everything works fine as long as I'm on my local network.
I enter it like this: exchangeserverdomain.com:4443
I have OWA running perfectly by using the same external server address:<port>, and all needed certificates are on my WM6 device (it's the HTC Touch Dual).
Seems like ActiveSync doesn't like portnumbers.
Any tips?
Click to expand...
Click to collapse
hmmm this is interesting

[q] Getting OTA HTTPS push activesyncing with a Linux or FreeBSD server: Doable?

I've been getting by with Flexmail with its imap idle to email using my server but I'd like to see if it's possible to get Apache or any httpd working I suppose in conjunction with an MTA like postfix and an IMAP server like dovecot to trick a WinMo phone into thinking it's getting its mail fed to it by a Linux machine (over https) in a way it can understand. Might save me some juice but I'm just up for a challenge and could use your help. Even if just for receiving mail...
So, might one be able to set up apache to have some kind of an ActiveSync directory to get the phone interacting with it when you try to add the host on the phone?
If that's doable, how could one configure the rest of server's mail daemons to work in a way that's Microsoft-esque as far as the phone's concerned? Or are other daemons not even involved, just httpd?
Lastly, and I've spent hours (but a long time ago) trying to do this with no success but with an actual Exchange server, is it possible, regardless of this linux stuff, to tweak a winmo phone not to care about domain/host certificate validation and just sync away over https (I believe activesync only does push over https, not http, though regular non push works over http)? All I could find were obsolete cert tricks that worked with wm5.
How's that for a challenge!
I know my way around Linux and Apache and if we could figure this one out (maybe Xandros?), well, wouldn't that be badass?

Categories

Resources