When updating or re-emerging courier, the unmerging of the old build removes msgs, msgq and track from /var/lib/courier . The problem is that they are needed by courier. Reproducible: Always Steps to Reproduce: 1. emerge courier 2. check that /var/lib/courier/{msgs,msgq,track} exists (make them if they dont, but they should). 3. now emerge courier again, and have a look, the folders are gone. Actual Results: Courier stops working Expected Results: The directories shouldn't have been removed, it might be an idea to make .keep files inside them.
Created attachment 52533 [details, diff] courier-init.diff Patch that patches the courier init script, so it creates the directories in /var/lib/courier if they does not exist. It only requires that people runs "/etc/init.d/courier restart" after updating. This info should be added to the postinstall info in the ebuild.
What are these files for? I don't have them and courier-imapd-ssl is functioning perfectly well.
I guess that you are only using the net-mail/courier-imap package, right? The problem is with the mail-mta/courier package. I have been able to reproduce it on 3 different machines, as soon as you reemerge or update courier, the folders gets removed, and courier stops working (at least for sender/recieving mails).
keepdir had previously been run on too many directories, and that caused collisions with baselayout. fix to cut back on those went too far. now only a more sane set of directories are marked. should be good now.