Results 1 to 9 of 9
Discuss Exchange "push" mail to iPhone - works! at the General - Hackint0sh.org; Like many of us, my corporate Exchange email server doesn't have IMAP enabled. So i ...
  1. #1
    Rookie Array

    Join Date
    Jul 2007
    Posts
    10
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Exchange "push" mail to iPhone - works!

    Like many of us, my corporate Exchange email server doesn't have IMAP enabled. So i couldn't get to my work mail from the iPhone.

    Luckily, Exchange servers by default, have OWA and WebDAV enabled, so there turns out to be a way to get the mail to the phone. I wrote a little python deamon that gets new mail from Exchange via WebDAV and sends it to Yahoo, which will then "push" the mail onto the phone. The mail is not actually forwarded, it is copied, read below!

    This works like so:

    0. Login to Exchange via OWA
    1. Issue WebDAV/SQL query to search for new mail since last poll - only mail without iPhone tag
    2. If there is any mail, it is fetched from the exchange server in raw .EML format using WebDAV
    3. The raw mail is then sent to the Inbox of your Yahoo account.
    4. The mail is the tagged 'iphone' via WebDav to prevent repeated forwarding.
    5. Yahoo will now signal a new mail has arrived to the iPhone via a cellular OMA call (not part of this script)
    6. The iphone will receive the OMA call and go to yahoo's imap and get the new mail
    7. Because we sent the raw .EML to yahoo, all original headers are still intact, so the mail will look as if it was sent to the iPhone by the original author, so you can reply, or reply all and the mail will go to the original author and/or rcipiants. Unfortunately, the "From" in your reply, will still say you@yahoo.com, this script will not fix that :-)

    usage:
    python WebDAV-Poller.py <exchange-url> <exchange-username> <yahoo-username> <password> <poll-intervall>

    example:
    python WebDAV-Poller.py https://webmail.somecompany.com me meyahoo fakepwd 60

    this requires that your exchange and yahoo passwd are the same!

    if you are interested, you can get the script here:
    http://www.megaupload.com/?d=9WHTFLIE

    please note that this only works with python 2.3 or 2.4, i am still working on getting this to work with 2.5

    have fun!



  2. #2
    Newbie Array

    Join Date
    Jul 2007
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Forwarding your corporate e-mail account to an external e-mail provider like yahoo is against most company's policies. I would suggest not doing this. Especially if you valid your job.

  3. #3
    Newbie Array

    Join Date
    Jul 2007
    Posts
    1
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Forgetting the security aspect, is this really 'push' if you are polling your exchange server on a set interval? You'd have to be polling every 5 seconds or so for this to be a push experience.

  4. #4
    Advanced Array

    Join Date
    Jul 2007
    Posts
    31
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by yoshi View Post
    Forwarding your corporate e-mail account to an external e-mail provider like yahoo is against most company's policies. I would suggest not doing this. Especially if you valid your job.
    What? If it's good enough for the White House administration, it's good enough for me!

  5. #5
    Advanced Array

    Join Date
    Jul 2007
    Posts
    41
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Couldn't you just access Exchange Webmail and setup a forward copy rule to your yahoo account? Then you would not have to use this python script.


  6. #6
    Newbie Array

    Join Date
    Jul 2007
    Location
    Shanghai, Edinburgh, Toronto
    Posts
    9
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default This free email solution works for me.

    I am testing this email solution.

    http://www.cortado.com/index.php?s=241&lc=61

    They offer free push email accounts.

    Sorry for the link. But i figure on if i can save people from using the awful
    yahoo email and gmail it might be worth it.

    thanks
    a.

  7. #7
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    445
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    30

    Default

    Hey m8,

    can you post the source somewhere else? I can't download....

    or if you could email it to me roy [@] roy . com . br that would be great... I'm trying to do something for it run on the iphone itself and update the mail db on its own, so it gets real push....

  8. #8
    Rookie Array

    Join Date
    Aug 2007
    Posts
    18
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Is there python 2.3 or 2.4 for the iPhone available anywhere?

  9. #9
    Senior Professional Array

    Join Date
    Jul 2007
    Posts
    445
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    30

    Default

    Quote Originally Posted by kupan787 View Post
    Is there python 2.3 or 2.4 for the iPhone available anywhere?
    Are you planning on modifiyng the script, or running like this on the iphone?

    This isn't efficient to be run on the iphone... best would be to run it somewhere on the local server network, as it would be able to poll the server quickly and send it to yahoo...

 

 

Similar Threads

  1. [Problem][iPhone 2G] After "push fix" Drainage of battery and not receiving calls
    By kill the iphone in forum iOS 3.x (iPhone OS 3.x)
    Replies: 10
    Last Post: 09-24-2009, 01:59 PM
  2. My 2G iPhone "feels" slower when Push in ON with MobileMe
    By imactor in forum iOS 3.x (iPhone OS 3.x)
    Replies: 0
    Last Post: 06-25-2009, 01:08 AM
  3. FW2.2 iphone 2g mail constant "connecting"
    By truehybridx in forum General
    Replies: 1
    Last Post: 12-02-2008, 11:11 PM
  4. Replies: 3
    Last Post: 05-11-2008, 01:30 AM
  5. [1.1.1(OTB 1.0.2)] Hitting "Send Mail" closes Mail App
    By ElJuanPerez in forum iPhone "2G" (Rev. 1)
    Replies: 4
    Last Post: 01-06-2008, 09:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 12:26 PM.
twitter, follow us!