Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-2011, 12:58 PM
Intermediate Member
 
Posts: 15
Default [SOLVED] WP7 to Zimbra behind firewall

My situation: I have a Debian Linux server acting as a router between my internal network and the internet. I have a Windows Phone 7 that I want to sync with my Zimbra server (also running on Debian) sitting behind the router.

My ultimate goal is to get my Windows Phone 7 to sync email, calendar, and contacts with my Zimbra server.

I first tried to connect my phone by setting up an IMAP account, just to get email. I have my router set up to forward ports 993 and 465 to my Zimbra server. I set incoming mail server to mydomain.com:993, outgoing to mydomain:465, checked "Require SSL" for both incoming and outgoing. I can see that packets are hitting the intended port forwarding rules, but I get an "Error code: 80072FA8" from the Windows Phone. So already, I think I'm doing something wrong; I just don't know what it is. (I did at one point try emailing the SSL cert to my phone, which seemed to install it, but that did not help.)

In my googling, I stumbled on a college's web site (UPenn) that had instructions for syncing a WP7 to Zimbra, and the instructions mentioned setting it up as an Exchange/Outlook account. My attempts were likewise unsuccessful (error code 80072EFF), but I suspect I might need to forward an additional port -- I just couldn't find what port it might need.
Reply With Quote
  #2 (permalink)  
Old 02-16-2011, 11:38 PM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by YakkoWarner View Post
My situation: I have a Debian Linux server acting as a router between my internal network and the internet. I have a Windows Phone 7 that I want to sync with my Zimbra server (also running on Debian) sitting behind the router.

My ultimate goal is to get my Windows Phone 7 to sync email, calendar, and contacts with my Zimbra server.
It's not possible to sync calendar/contacts with your phone and the Open Source version of Zimbra unless you use something like Funambol (search the forums for that).

Quote:
Originally Posted by YakkoWarner View Post
I first tried to connect my phone by setting up an IMAP account, just to get email. I have my router set up to forward ports 993 and 465 to my Zimbra server. I set incoming mail server to mydomain.com:993, outgoing to mydomain:465, checked "Require SSL" for both incoming and outgoing. I can see that packets are hitting the intended port forwarding rules, but I get an "Error code: 80072FA8" from the Windows Phone. So already, I think I'm doing something wrong; I just don't know what it is. (I did at one point try emailing the SSL cert to my phone, which seemed to install it, but that did not help.)
You should use the correct submission port and that's 587, it will also require authentication. You also need to import your certificate to the phone, I believe there's details in the forums on that.

Quote:
Originally Posted by YakkoWarner View Post
In my googling, I stumbled on a college's web site (UPenn) that had instructions for syncing a WP7 to Zimbra, and the instructions mentioned setting it up as an Exchange/Outlook account. My attempts were likewise unsuccessful (error code 80072EFF), but I suspect I might need to forward an additional port -- I just couldn't find what port it might need.
Those are the details for a Zimbra NE server.
__________________
Regards


Bill

Last edited by phoenix; 05-06-2011 at 10:34 PM..
Reply With Quote
  #3 (permalink)  
Old 02-17-2011, 08:24 PM
Intermediate Member
 
Posts: 15
Default

Quote:
Originally Posted by phoenix View Post
It's not possible to sync calendar/contacts with your phone and the Open Source version of Zimbra unless you use something like Funambol (search the forums for that).
I'll look into that later then. For now, I'll just keep working on getting it to connect to IMAP email.

Quote:
Originally Posted by phoenix View Post
You should use the correct submission port and that's 587, it will also require authentication. You also need to import your certificate to the phone, I believe there's details in the forums on that.
I've added port 587 forwarding. I also exported my certificate with the command
Code:
openssl x509 -in ca.pem -inform PEM -out MyCertificatecrt.cer -outform DER
emailed it to my phone, and installed the certificate.

When I tell my phone to sync, I watch my firewall. I can see a few packets come in to port 993, but I eventually get an error code 800C2746.

I might be doing something really wrong, though. I ran this on my router:
Code:
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 465 -j DNAT --to-dest <zimbra server internal IP>:465
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 993 -j DNAT --to-dest <zimbra server internal IP>:993
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 587 -j DNAT --to-dest <zimbra server internal IP>:587
I've used nearly identical commands to open ports directly into other workstations on my network, so I expected this to work just as well.

I then took one of my internal PCs and changed my email configuration to use the router's address. Theoretically, the packets should just bounce over to the Zimbra server, and it should work just like it does when I configure my email client (Thunderbird) to point directly at the Zimbra server (ports 993 and 465 for incoming and outgoing, respectively). But now, the connection times out. (Again, I see a few packets hit the forwarding rule on port 993 when this is going on.)

So it's not working like I expect. What am I doing wrong?

--EDIT--

Did some googling on this, and I found that I needed to add:
Code:
/sbin/iptables -I FORWARD -p tcp -m state --state NEW --dport 993 -j ACCEPT
(and for the other ports as well). Once I added that, email started syncing immediately on my phone.

Thank you kindly for your help.

Last edited by phoenix; 05-06-2011 at 10:34 PM.. Reason: Found the solution
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.