Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So we have a mail system built on postfix-courier-saslauthd with unix users and maildirs and TONS of shared folders. Both T'bird (2.0.0.21) and Roundcube exhibits weird symptoms with subscriptions.

In Roundcube, if I go into Personal Settings -> Folders, 9 out of 10 times, it automatically subscribes me to ALL folders. Not cool.

In Thunderbird, when I open Subscribe..., then start going thru the folder structure (it loads them dynamically), it starts subscribing me to random folders, sometime an entire subfolder tree.

I'm starting to suspect that something weird is going on server-side. Anyone got any ideas? It's very, very annoying.

EDIT: ran T'bird in debug mode. I get tons of these messages: 1628149872[1e71f20]: considering playing queued url:imap://user@my.mail.server.address:143/unsubscribe>.shared/a/sub/folder

-1628149872[1e71f20]: creating protocol instance to play queued url:imap://user@my.mail.server.address:143/unsubscribe>.shared/a/sub/folder

-1628149872[1e71f20]: failed creating protocol instance to play queued url:imap://user@my.mail.server.address:143/unsubscribe>.shared/a/sub/folder

share|improve this question
    
aaaaaaaaaanyone? –  KTamas May 22 '09 at 17:34

6 Answers 6

I recommend to consider using dovecot instead of courier-imap.

share|improve this answer
    
Well, maybe on the long term. How hard is to, say, migrate the whole damn thing? –  KTamas Jun 8 '09 at 11:19
    
I think it is not that hard. It handles maildirs so this part is ok. You have to configure it anyways. I have one idea regarding the original question: you can try sniffing what commands these clients are issueing. If it is not their fault (you will see from the commands sent on the wire) then it is definitely a server issue. –  cstamas Jun 8 '09 at 11:26
    
I'll second the recommendation to switch to dovecot, it performs much better on large mailboxes and requires fewer resources than Courier. IIRC, migration was not difficult, and there's even a Wiki page on doing it: wiki.dovecot.org/Migration/Courier –  tomlogic Jun 10 '09 at 22:43

Needs a bit more detail.

Subscribes to only shared, only private, or both?

Most likely sounds like a bug in courier, but check the courierimapsubscribed file and see if there's anything strage there.


Update: Based on the courier docs: http://www.courier-mta.org/imap/README.sharedfolders.html

It seems like user subscriptions to shared folders depend on how they're implemented.

share|improve this answer
    
shared only, it seems. We don't use much private folders, but that worked so far I think. I'll check that file. –  KTamas May 26 '09 at 8:31
    
Nope... nothing strange in courierimapsubscribed. But it only has the private folders. –  KTamas May 26 '09 at 8:33
1  
they are "Filesystem permissions-based shared folders". –  KTamas May 27 '09 at 9:25

RoundCube should not automatically subscribe you to all folders. Can you tell me which version you are using? I'd help you get this sorted. Hopefully you are running one of the latest releases.

Btw, I am using courier-imap as well (with Postfix). And I personally am folder-crazy. And it all works for me.

[Disclaimer: I'm one of the developers of RoundCube.]

--Till

share|improve this answer
    
it's a nightly from the SVN, definitely after 0.2.1 but I don't know where to check the version exactly. –  KTamas Jun 10 '09 at 14:38
    
Check this link: trac.roundcube.net/browser/trunk/roundcubemail/index.php –  Till Jun 16 '09 at 13:11
    
At the top, it has the version. –  Till Jun 16 '09 at 13:13

Maybe you're looking for some other solution as well: I have had best experience with Cyrus imap. More capabilities than courier and much much faster (and this is with a dozen users already).

share|improve this answer
    
Same question, how hard is to migrate? –  KTamas Jun 8 '09 at 11:19
    
I've set up the new server (with help of my friend who knows postfix well), then migrated messages using perl script named imapsync. Apart from learning postfix and running imapsync several times it's been fairly simple. –  slovon Jun 8 '09 at 14:07

I love RoundCube and use it with Gmail Apps, but it does seem to do some odd things with folders. I've had it created and copy folders too.

Waiting for a production release might be better.

share|improve this answer

In the IMAP protocol, the subscription bit is saved on the server side. I wonder if your IMAP server is saving that bit on the folder itself. If that is the case, then all of your users will be "subscribed" to the same folder.

How do you have your shared folders set up? If you just create symlinks from the shared folders into the user's maildir, you'll likely experience this problem.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.