Cyrus IMAP and Outlook 2013

Posted in General at 8:32 pm by jw

Nice short little “how to fix this” one.

I upgraded to Office 2013 and found that when Outlook connected to my local IMAP server it wanted to keep most of the “special” folders locally.  This didn’t concern me too much, except for the “Sent Items” folder, which I really want to keep and share between desktop reinstalls or just between the three or four machines I read and send email from these days.

After a long piece of searching around all the different account and general options in Outlook I came to the conclusion that the manual configuration that used to be available in Outlook 2010 for choosing where each “special” folder would point to had just gone so I had to go on a bit of a hunt around Google to figure out where they’d gone!

Turns out, Outlook 2013 uses the XLIST command in IMAP to determine what each special folder is on the server and if it doesn’t find it there then it just makes “This computer only” folders to hold the information.  Cyrus can be configured to properly report these (as you’d expect) and adding the following to my /etc/imapd.conf fixed the problem, after deleting my account in Outlook and recreating it:

# Special-Use Mailboxes. Use xlist- prefix to the list of special use 
# attributes defined in RFC 6154. Attribute name in the configuration 
# key should be defined in lowercase. The attribute value is case 
# sensitive, may contain whitespace and and must be valid 
# UTF7-IMAP string. 
xlist-archive: Archives 
xlist-drafts: Drafts 
xlist-sent: Sent 
xlist-spam: Spam 
xlist-trash: Trash

Now Outook behaves itself, stores all the sent items in “Sent”, the deleted items in “Trash” and drafts in “Drafts”.  All my other devices (Android, iOS, etc.) seem to honor the settings as well.


  1. Andreas Stein Said:

    January 15, 2014 at 2:37 am

    It works for me – thanks

  2. Lorenzo Lari Said:

    March 14, 2014 at 7:53 pm

    Thank you very much. It works.

    La configurazione funziona bene.

  3. Koen Said:

    July 4, 2014 at 12:24 am

    what version of cyrus do you use? I use a 2.2 release and with adding this to the config it doesn’t show the predefined folder structure.


  4. jw Said:

    July 10, 2014 at 9:14 pm

    I’m using 2.4.17 at the moment. I’ve gone off Outlook 2013 as a client because Google Apps Sync misbehaves with an IMAP account attached. 🙁

  5. soletan Said:

    December 30, 2014 at 3:51 am

    Great fix! Works perfect, though requiring Cyrus imapd 2.4+ is required …

Leave a Comment