On Sat, March 21, 2009 12:17 am, Paul Lesniewski wrote: > On Fri, Mar 20, 2009 at 8:24 PM, Alan in Toronto > <Alantoronto@xxxxxxxxxxxxxxx> wrote: >> >> >> On Fri, March 20, 2009 11:01 pm, Paul Lesniewski wrote: >>> On Fri, Mar 20, 2009 at 4:28 PM, Alan in Toronto >>> <Alantoronto@xxxxxxxxxxxxxxx> wrote: >>>> SquirrelMail 1.4.15 >>>> PHP 5.2.9, SuPHP module, Zend Optimizer >>>> Dovecot IMAP (in a cPanel release) >>>> Capabilities: * CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND >>>> UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS UIDPLUS LIST-EXTENDED >>>> I18NLEVEL=1 QUOTA STARTTLS AUTH=PLAIN AUTH=LOGIN >>>> Maildir mail storage format >>>> Mail is stored in /home/webaccountname/mail/mailusername/ >>>> Apache 2.2.8, FreeBSD 6.2-RELEASE-p11, cPanel virtual web hosting account IMAP >>>> Server Address: 127.0.0.1 >>>> SMTP Server Address: 127.0.0.1 >>>> Server side sorting is enabled >>>> Server side thread sorting is disabled >>>> Allow editing of identities: Yes >>>> Allow editing of full name: Yes >>>> SquirrelMail access via SSL (https) for entire session >>>> Browser: usually IE7, plus testing on others >>>> User login with full e-mail address, e.g. alan@xxxxxxxxxxxx >>>> Many plugins, including: Auto Complete; Folder Synch; Select Range; etc. >>>> Compatibility 2.0.12 >>>> SquirrelMail configtest: pass >>>> >>>> Hello all: >>>> >>>> I have just migrated to a new server. Previously I was using SquirrelMail with >>>> Courier IMAP, but the new server has Dovecot. Initially my SquirrelMail config >>>> was >>>> simply copied to the new server, and everything seemed to work fine. I want to >>>> revise the config to make it as compatible with Dovecot as possible. I've read >>>> on >>>> the SM site and through list archives and Googled, but I see lots of conflicting >>>> advice on how to config for Dovecot. >>>> >>>> My SM config used on Courier included these settings: >>>> >>>> IMAP Server Type: Courier >>>> IMAP Folder Delimiter: . >>>> Default Folder Prefix: INBOX. >>>> >>>> As I say, that seemed to work even on Dovecot. Based on info. on SM site and >>>> others, >>>> I changed to the following: >>>> >>>> IMAP Server Type: Dovecot >>>> IMAP Folder Delimiter: detect >>>> Default Folder Prefix: "" (blank/empty) >>>> >>>> However, once I did that I saw the following error: >>>> >>>> ERROR: Could not complete request. >>>> Query: CREATE "Trash" >>>> Reason Given: Unknown namespace. >>>> >>>> So, I left Server Type as Dovecot, but reverted the other two values to what I >>>> had >>>> on Courier server, so now I have this: >>>> >>>> IMAP Server Type: Dovecot >>>> IMAP Folder Delimiter: . >>>> Default Folder Prefix: INBOX. >>>> >>>> Again, as with the original Courier config, this seems to work. But, is this >>>> optimal >>>> or correct? Could someone in the know please give me some info. about the proper >>>> config values for a Dovecot server? >>> >>> config/conf.pl --> D --> "dovecot" >>> >>> Or look at the settings in doc/presets.txt >> >> Thanks Paul. I'm configuring using the Admin plugin. I looked at doc/presets.txt. >> With those Dovecot settings, I get that error: >> >> ERROR: Could not complete request. >> Query: CREATE "Trash" >> Reason Given: Unknown namespace. >> >> The key value seems to be "Default Folder Prefix" (default_folder_prefix). If it >> is >> set to <none> (empty string) as specified for Dovecot in doc/presets.txt, I get >> that >> error. But if I change it to what I used for Courier, INBOX., then everything >> seems >> to work. This is what I have now: >> >> IMAP Server Type: Dovecot >> IMAP Folder Delimiter: detect >> Default Folder Prefix: INBOX. >> >> I don't understand why doc/presets.txt Dovecot settings give me that error, so >> even >> though things appear to work with different settings I don't know if they are >> optimal. > > It is possible that Dovecot has changed its standard configuration > since the presets were developed (someone with some familiarity with > Dovecot could chime in), > but given that we don't get reports about > this problem, it seems it might be a custom or one-off configuration > issue on your system. Perhaps it's like the documentation for UW-IMAP a few years ago. The documented config really seemed to be wrong, so based on trial and error testing and detailed documentation, I documented a config that worked well on several UW servers. Afterward, several people copied that config and replicated it to other sites recommending it as the ideal config for SM on UW-IMAP. > The default folder prefix value isn't something > that is going to be "non-optimal" when set some other way - it's not a > performance setting. If INBOX. works for you, and ALL folder > operations work as expected, then that's what you should use. Okay, that's good to know. Sort of an "if it seems to work, it's working" philosophy. I can work with that. :) Thanks Paul. P.S. Saw Richard Underhill's quintet recently in a tiny club with me just two armlengths from Richard. He was awesome! ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ----- squirrelmail-users mailing list Posting guidelines: http://squirrelmail.org/postingguidelines List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx List archives: http://news.gmane.org/gmane.mail.squirrelmail.user List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users