Connect Zimbra Community with Outlook 2013


Here is how to connect your Zimbra Community with Outlook 2013 using the ActiveSync and Z-Push without Outlook connector available only in Professional edition.

If you have z-push installed on you Zimbra Community server you can now connect your Outlook 2013 and sync your mails, calendar, contacts. If you don’t already have Z-Push installed you can follow my tutorial Zimbra ActiveSync with Z-Push v2

You can start your configuration but at the end you will receive this error: Log onto Exchange ActiveSync mail server (EAS): The server cannot be found. 

There is a simple workaround that i found on this blog How to connect Exchange ActiveSync (Z-Push or other EAS Server) with Outlook 2013 and it works with Zimbra Community eddition.

Scroll down at the end of this post for a easier workaround, but it’s not officially supported by z-push developers. 

Configuring Outlook

  1. Start Outlook and go to File –> Add Account
    Outlook Add Account
  2. Select “Manual setup or additional server types”
    Outlook Add Account2
  3. Select “Outlook.com or Exchange ActiveSync compatible service”
    Outlook Add Account
  4. Enter your account infomation and your EAS server address then click “Next”
    Outlook Add Account4
  5. You will get the error as “Log onto Exchange ActiveSync mail server (EAS): The server cannot be found.”
    DO NOT click “Close”, left this dialog message here and go to Step 6.
    Outlook Error
    If you are using selfsign certificate then you might get a certificate error prior, simply click “Yes”

  6. Open your task manager by holding “Ctrl + Shift + Esc” or right click on your task bar and select “Task Manager”
  7. At the Windows Task Manager, navigate to “Processes” tab (Windows 7) / “Details” tab (Windows 8)
    Taskmanager
  8. Look for outlook.exe process and click “End Process”, if any confirmation dialog appear, simply click “Ok”
    Confirmation

Open your Outlook 2013 again and that’s it, you can see status will show “Connected“. Allow Outlook to download mail from the server. Once all mail Synced, another status “All folders are up to date” will appear.

Successful

This maybe patched later on, but for now this works and we can gave Outlook lovers their mail client.

[divider]

EDIT 17-12-2013: For those who see the folders but there are NO mail in them

If you have bigger mailbox and in your folders you have larger number of mails than you may have problem with your states.

I had a mailbox with 20.000+ mails in one folder and during debugging I’ve noticed that it’s reading 18,000 mails and then my Outlook is trying to get the number of mails again and it’s messing the state and i get:

StateNotFoundException: FileStateMachine->GetState(): Could not locate state ‘/var/lib/z-push/7/9/db64db8d21094611b0c387e289914497-bs-1386661950’ – code: 0

To fix this you need to increase the $limit variable in backend/zimbra/zimbra.php from the default 500,i was able to get all the mails with the value of 2000

cd /var/www/z-push/
vi backend/zimbra/zimbra.php

Find the $limit variable and change it.

$limit = 2000

I can’t say if this will impact performance but for now it works great for me.

[divider]

EDIT 08-01-2014: For larger mailboxes sometimes Outlook hangs and stops updating

According to the author the php memory_limit should be minimum 128MB but for larger mailboxes you need to increase it. I had mine set to 256MB and now everything works fine.

vi /etc/php5/apache2/php.ini

change the default memory_limit value to 256M:

memory_limit = 256M

Hope this helps you.

EDIT 11-11-2014: You can edit z-push core files so you don’t have to kill the Outlook process.

It is described on this SourceForge link and I’ve been using it for some time now:

edit lib/core/zpush.php like this:

vi lib/core/zpush.php
static private $supportedASVersions = array(
 //self::ASV_1,
 //self::ASV_2,
 //self::ASV_21,
 self::ASV_25,
 self::ASV_12,
 self::ASV_121,
 self::ASV_14
 );

Zimbra http://www.zimbra.com/



Subscribe
Notify of
guest
20 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Kit
Kit
10 years ago

That’s pretty ingenious!

Managed to get into the Outlook application but mails ain’t coming in?

nstojanoski
nstojanoski
10 years ago
Reply to  Kit

If you can see your mails on your mobile device than you should see all your mails, calendar and contacts in your Outlook 2013.

Also what is your z-push version?

Regards

fish
fish
10 years ago

Hi !!

I setup in your how to but I cannot sync with Outlook2013 it show disconnected. I used z-push2.0.8 and zimbra opensourse 8.0.4. How I Do it ?? THX

fish
fish
10 years ago
Reply to  fish

AH !

I can sync z-push with mobile phone but cannot outlook only .

nstojanoski
nstojanoski
10 years ago
Reply to  fish

Did you accept your certificate if it’s self signed and what do you have in your z-push.log?

fish
fish
10 years ago
Reply to  nstojanoski

Now I can sync mail , calendar , task complete but I want to sync global address list in zimbra to my outlook 2013. How i do it ??

thx.

tom kawalec
tom kawalec
10 years ago

This is great. My email folders are showing up but no actual emails. Something i’m missing?

nstojanoski
nstojanoski
10 years ago
Reply to  tom kawalec

if your mailbox is bigger it takes time to sync your folders. leave your outlook on and you will see the messages.

if you have issues check your z-push log maybe you have loop and you are downloading messages one by one.

Regards

nstojanoski
nstojanoski
10 years ago
Reply to  tom kawalec

Tom check my edit in the post if you don’t have messages in your folders, i run into the same problem after migrating larger mailbox.

maxxer
10 years ago

Thanks for your tutorial, but are you aware this doesn’t work when you enable profiles in olk? In this case the check is probably performed by some other process, thus killing outlook doesn’t solve. Anyone have an idea on how to work around this? thanks

SaiyajinZoeyro
10 years ago

Hi Friend…
I have success using z-push2 with Mobile but with OL 2013 no success…
I get this error on Zimbra 8.0.6 log (zmmailbox.out):

2014-01-26 23:06:27.667:WARN:oejs.ServletHandler:
javax.servlet.ServletException: failed to handle GET request

2014-01-26 23:06:27.667:WARN:oejs.ServletHandler:/service/extension/zimbrasync
com.zimbra.common.service.ServiceException: system failure: Extension HTTP handler not found at /zimbrasync|ExceptionId:qtp865089657-1256:https://192.168.0.43:443/Microsoft-Server-ActiveSync?Cmd=FolderSync&User=services&DeviceId=DC5231A08C174A32B5372F37FCC92827&DeviceType=WindowsOutlook15:1390784787667:79559595f0865f49|Code:service.FAILURE

Is there something to do to fix this??

Thanks

speedy3k
speedy3k
10 years ago
Rudi Hartono
Rudi Hartono
9 years ago

Please check this out: synchronize zimbra contacts anc calendars with outlook using carddav and caldav: http://outlookandmacosxserver.blogspot.tw/2014/07/some-of-my-friends-are-using-zimbra.html

Samuli Valavuo
9 years ago

I have working Zimbra – z-push installation and it works like charm with mobile phones (android & winphones), but it won’t work with Outlook2013! Outlook does get all folders from my mailbox, but none of the messages. z-push-error.log says: “NotImplementedException: Folderid ‘f14642′ is saved to be of type ’18’ but this type is not implemented – code: 0” Zimbra: 8.5.1_GA_3056 (build 20141103151510) Zimbra Backend: [‘revision’] = “61”; Z-Push: “ZPUSH_VERSION”, “2.1.3-1892” I tried to put “define(‘ZIMBRA_DISABLE_DOCUMENTS’,true);” to backend/zimbra/config.php and disables briefcase from Zimbra (somewhere was said that briefcase does this error), but no help for me! I have two installations of… Read more »

nstojanoski
nstojanoski
9 years ago
Reply to  Samuli Valavuo

Hello,

I’ve found this post: http://sourceforge.net/p/zimbrabackend/discussion/998911/thread/9ae384f6/#484c

Try recreating the folder.

Regards,
Nikola

Samuli Valavuo
9 years ago
Reply to  nstojanoski

Problem is, that I have no clue what is the problematic folder.
I have about 40 folders (and subfolders) in my mailbox.
Everything works in my Galaxy S4, but not in Outlook2013.

Edit: I have another domain in same Zimbra and the same error (different forder id) comes from that account too.

– Samuli

Samuli Valavuo
9 years ago
Reply to  Samuli Valavuo

There’s a solution for this:
https://blog.bartlweb.net/2015/02/outlook-synchronisation-mit-zimbra-uber-activesync-via-z-push-streikt-aufgrund-von-nicht-implementierten-ordnertypen/

Short answer/guide:
Zimbra WebClient -> View Source -> find problematic folder number (in my case 14642) and it indicates my folder to be Comments
Take IMAP client and delete that folder (and empty Trash).
Voila! Outlook is working!

Aiham Albasha
Aiham Albasha
8 years ago
Reply to  nstojanoski

please if you know how to program voic mail in bapx area soho please if you can to contact with me in my mopile 0097466113036

my email :[email protected]

Aiham Albasha
Aiham Albasha
8 years ago

please if you know how to program voic mail in bapx area soho please if you can to contact with me in my mobile 0097466113036

my email :[email protected]

Advertisement