SquirrelMail  
Donations
News
About
Support
Security
Screen shots
Download
Plugins
Documentation
Sponsors
Bounties





Junk Email Filter






Security Notice
Phishing campain
Version 1.4.15
Security Upgrade

WARNING

It is strongly recommended to use preset option provided by SquirrelMail configuration utility. Any suggestion saying that you have to set folder prefix and special folders manually for Cyrus IMAP, Courier IMAP, UW or some other IMAP server supported by SquirrelMail presets, is specific to some custom IMAP namespace used by comment submitter. If you think that SquirrelMail presets don't work with your IMAP server - contact SquirrelMail developers.


Fedora and various IMAP servers

The Fedora SquirrelMail package is broken for all IMAP servers needing $default_folder_prefix to be anything but an empty string (see FedoraIgnoresConfigurationSettings for more details).


Fedora Core 5 (FC5), MySQL, and Courier

This was due to my setting in Folder Defaults of conf.pl. I had them set as Sent, Trash and Drafts when they should have been INBOX.Sent, INBOX.Trash and INBOX.Drafts.

Works for Me


Fedora Core 3 (FC3) and Dovecot

Though I use the "mbox" format, I can get everything to work in the following manner:

Dovecot looks in /var/mail/%username for the mbox,

but the imap default directory is in ~/mail/

SquirrelMail's default folder is mail/ and the option for subdirectories is on.

THE ONLY GLITCH is that when I add a folder that CAN have subdirectories, I see the "Invalid mailbox name:" error for the SUBSCRIBE...

I still see the physical directory appearing in ~/mail/mail/<whatever> and if I refresh the whole page I can THEN subscribe to it. I am looking for a way to just add a delay or even a refresh so that the error doesn't appear. Then my users can go back and subscribe.

OR

Perhaps it would be easier just to add a configuration option that selects whether or not to auto-subscribe a folder upon creation. Either way, it works great.

//JMason


Qmail toaster and Courier

Do the following to get rid of the errors

as well as the INBOX.TRASH, INBOX.SENT,

INBOX.DRAFTS listed in the left panel\n

$default_folder_prefix          = 'INBOX.';
$trash_folder                   = 'Trash';
$sent_folder                    = 'Sent';
$draft_folder                   = 'Drafts';

THEN HERE IS WHAT WAS MISSED... by default, the delimiter

in IMAP Settings was "/" when it should be "."

Should look like:\n

IMAP Settings
--------------
4. IMAP Server : localhost
5. IMAP Port : 143
6. Authentication type : login
7. Secure IMAP (TLS) : false
8. Server software : courier
9. Delimiter : .

In doing so, the left side folder view in SquirrelMail

will look like the following:\n

INBOX
  Drafts
  Sent
  Trash

Rather than:\n

INBOX
INBOX.DRAFTS
INBOX.SENT
INBOX.TRASH

Which looked silly!


I'm using the Mailutils-Imapd4 and had to use ./ under Default Folder

// Terese


Please Select none under Default folder


To do this so it's correct for all your users cd config/ and run ./conf.pl select option 3 then 1 and enter 'none'. You don't need the need the quotes. When the menu shows again make sure the entry for 1 is blank. Save your changes and exit.

// Jon Nelson [email protected]


Debian Unstable and Courier

Problem

  • ERROR : Could not complete request.
  • Query: CREATE "Maildir/._Sent_Items"
  • Reason Given: Invalid mailbox name

Setting default folder prefix to 'none' in config tool didn't worked for me. It put a line like this in config.php:\n

$default_folder_prefix = ''none'.';

which generate a PHP syntax error

Solution

Edit /etc/squirrelmail/config.php

set the $default_folder_prefix value to '.' like this:\n

$default_folder_prefix = '.';

// Fabien Meghazi - [email protected]


Also, make sure you read SquirrelMailAndCourierIMAP. I solved it by setting $auto_create_special = false in config.php, and that was mentioned on that page.

// [email protected]


Directly edit the /etc/squirrelmail/config.php file

set the $default_folder_prefix value to ''

like this:\n

$default_folder_prefix          = '';

// Gordon Chen Kak Toong [email protected]


None of these options worked for me with 1.2.10. The 'none' and '' suggestions generate syntax errors; the '.' allows the system to work but won't display the folder list.


I also get the same error... had to set the ff. to false, of course the special folders won't show up ^_^...\n

Folder Defaults
1.  Default Folder Prefix         :
2.  Show Folder Prefix Option     : true
3.  Trash Folder                  : Trash
4.  Sent Folder                   : Sent
5.  Drafts Folder                 : Drafts
6.  By default, move to trash     : false <\
7.  By default, move to sent      : false <-- changed from true state...
8.  By default, save as draft     : false </
9.  List Special Folders First    : true
10. Show Special Folders Color    : true
11. Auto Expunge                  : true
12. Default Sub. of INBOX         : true
13. Show 'Contain Sub.' Option    : false
14. Default Unseen Notify         : 2
15. Default Unseen Type           : 1
16. Auto Create Special Folders   : true
17. Don't move folders into Trash : false
18. Enable /NoSelect folder fix   : false

R   Return to Main Menu
C.  Turn color on
S   Save data
Q   Quit

Command >>


I had the same problem.

I fixed it by putting INBOX. in the prefix field.

So it looks like:\n

Folder Defaults
1.  Default Folder Prefix         : INBOX.
2.  Show Folder Prefix Option     : true
3.  Trash Folder                  : Trash
4.  Sent Folder                   : Sent
5.  Drafts Folder                 : Drafts
6.  By default, move to trash     : true
7.  By default, move to sent      : true
8.  By default, save as draft     : true
9.  List Special Folders First    : true
10. Show Special Folders Color    : true
11. Auto Expunge                  : true
12. Default Sub. of INBOX         : true
13. Show 'Contain Sub.' Option    : false
14. Default Unseen Notify         : 2
15. Default Unseen Type           : 1
16. Auto Create Special Folders   : true
17. Don't move folders into Trash : false
18. Enable /NoSelect folder fix   : false

It autocreated the special folders and the error message specified above dissapeared.

// William Kuhn [email protected]


I like this solution because it removes the error you get when the user tries to create a folder under "none" in the folders list.

The user is automatically redirected to create the folder below the inbox.

// [email protected]


For me it worked by leaving empty ( '' ) in the default folder prefix and going to option > folder prefferences and setting to an empty field the "folder path"

// Ichim Tiberiu [email protected]


This was also the solution for me. These are my settings:\n

Folder Defaults
1.  Default Folder Prefix         :
2.  Show Folder Prefix Option     : true
3.  Trash Folder                  : INBOX.Trash
4.  Sent Folder                   : INBOX.Sent
5.  Drafts Folder                 : INBOX.Drafts
6.  By default, move to trash     : true
7.  By default, move to sent      : true
8.  By default, save as draft     : true

and in the Web User Interface:\n

Options -> Special Folder Options -> Folder Path : <empty field>

// Georg Schneemayer [email protected]


With Cyrus (SUSE) I had to force the delimiter to / and also change this in the Folder Defaults like\n

3.  Trash Folder                  : INBOX/Trash
4.  Sent Folder                   : INBOX/Sent
5.  Drafts Folder                 : INBOX/Drafts

// Jens Oberender [email protected]


With BINCIMAP\n

default_folder_prefix = 'INBOX/';
trash_folder          = 'Trash';
sent_folder           = 'Sent';
draft_folder          = 'Drafts';

// [email protected]


Newer versions seem to fix problem.

Another thing you may want to consider if you are using Red Hat 9 is upgrading to SquirrelMail 1.4.1. Red Hat 9 is shipping with 1.2.11-1. We could not make it work. After a great deal of effort we downloaded the 1.4.1 RPM installed it made the necessary configuration and user changes and all works fine now.


Some of my users had very elaborate pref files (in my case, /var/lib/squirrelmail/prefs/<user>.pref) and when I updated from 1.2.11 to 1.4.1, they could not log in. I moved their old pref files and that allowed them to log in and set new preferences. Possibly one could edit the old pref files enough to avoid this but I do not have advice on what to change. Options have been moved around enough from 1.2.11 to 1.4.1 that is probably not worth tracking down, IMHO.


Fedora Core 1 and Dovecot.

Based on http://www.dovecot.org/clients.html

Run conf.pl.

Under "Server Configuration" (2), select "Update IMAP Settings" (A):\n

8. Server Software: other
9. Delimiter: detect

Under "Folder Defaults" (3):\n

1. Default Folder Prefix: none
2. Show Folder Prefix Option: false
12. Default Sub. of INBOX: false
13. Show 'Contain Sub.' Option: false

// Maayan Turner maayan[at]qballtech[dot]com


None of the above things worked for me. I had a small idea and thought of reinstallating PHP4 and then installed SquirrelMail after removing the previously installed folder, and that helped. Everythings working fine for me now. Thinking of installing some plugins now.

Atul Kamat, Unix Network Engineer, World2web Technologies, India


None of the above seemed to work for me. I'm still getting the 'Query: CREATE "mail/Sent" Reason Given: Invalid mailbox name' error message. Still stuck.


Same thing here. I traced the PHP code to the sqimap_read_data_list function in functions/imap_general.php. $reponse="NO" but I still don't know why and which function is setting it. $auto_create_special=false; in config/config.php avoid to get the left frame corrupted but it didn't resolve the issue. If you try to create a folder, you get the same message "permission denied" (Cyrus-Imapd Fedora Core 2).


I had a lot of problems with Courier and SquirrelMail with the Query: CREATE "Sent" Reason Given: Invalid mailbox name. problem.

At first I thought I'd sorted it by setting the Default Folder Prefix to a single '/' - this meant I could see the inbox, and the sent items, trash and draft under the inbox. I'm sure SquirrelMail was even making them itself, but eventually it didn't.

Now, I hope this helps someone, but I got the following settings to work, as long as I made the .Sent/.Trash/.Drafts manually (using maildirmake -f $folder /path/to/maildir/) ;\n

$optional_delimiter     = '/';

$default_folder_prefix          = '';
$trash_folder                   = 'INBOX.Trash';
$sent_folder                    = 'INBOX.Sent';
$draft_folder                   = 'INBOX.Drafts';
$default_move_to_trash          = true;
$default_move_to_sent           = true;
$default_save_as_draft          = true;

Hope this helps someone out there!

Dug Stokes

Gilberd School Webmaster

[email protected]


For SUSE / web-cyradm I did the following in config.php\n

$optional_delimiter     = '/';

$default_folder_prefix          = '';
$trash_folder                   = 'INBOX.Trash';
$sent_folder                    = 'INBOX.Sent';
$draft_folder                   = 'INBOX.Drafts';


All the previous sugestions did not work for me. I read somewhere (can't remember where) that renaming the file config_local.php to something else should work.

This file seems to be a left over from a upgrade? Any how I renamed it and everything works including auto special folder creation using the standard suggestions for a courier IMAP.

// Wouter Boers


This worked for me on OS X server using cyrus imap:

set the "$default_folder_prefix" parameter to the following:\n

$default_folder_prefix          = '';


For Red Hat ES3 i made the change directly above\n

$default_folder_prefix          = '';

worked for me.

// Leigh - www.frenchestateagents.com


On my Red Hat ES3 the above did not work. Actually none of the previously posted solutions worked. Tried almost every of them.

I am really frustrated. I thought that was a mature product and now I struggle with the very basic config and must see that this seems a more than common problem to which there seem 500 different - mostly contradicting - solutions. And none of them works for everyone - or even at least everyone with the same distribution. Even Google spits out hundreds of results for that error but no final solution.

Is there really that many different options depending on each distribution? No way to find out the required values automatically? Or at least manually? :-(

// Martin


I am running SquirrelMail 1.4.2 @ Suse 9.3 using cyrus. The following changes fixed my problem:\n

$default_folder_prefix          = 'INBOX';
$trash_folder                   = '.Trash';
$sent_folder                    = '.Sent';
$draft_folder                   = '.Drafts';

in config/config.php

Have a lot of fun

Sven

sven.brier[a]freenet.de


I'm running SquirrelMail 1.4.7-4 and courier-imap.0.32-1. When I tried to login any account, in the folders frame I was getting this error:

ERROR: No se pudo completar la solicitud. Consulta: SUBSCRIBE "Enviados" Razón dada: SUBSCRIBE failed: Can't append to subscription database

and in $HOME directory it was created a Enviados file

The following configuration in config.php works for me:\n

$trash_folder                   = 'mail/Basura';
$sent_folder                    = 'mail/Enviados';
$draft_folder                   = 'mail/Borradores';

In the prefix_folder I have mail/ but for some unknown reason, it didn't work.

Francisco.


I was upgrading SquirrelMail on FC2 from an RPM to a source install and had this issue. My configuration before the upgrade was:\n

$default_folder_prefix          = 'mail/';
$trash_folder                   = 'Trash';
$sent_folder                    = 'Sent';
$draft_folder                   = 'Drafts';

I had to change it to:\n

$default_folder_prefix          = '';
$trash_folder                   = 'Trash';
$sent_folder                    = 'Sent';
$draft_folder                   = 'Drafts';

This appears to work fine, all my old mail is there in the INBOX as is my old trash and sent items.

Duncan, 2008-06-30


Hope it helps someone. Got the same error while making fresh install on CentOS 5.4 with Dovecot 1.2.6 and SquirrelMail 1.4.20-RC2.

In my case the working combination is:\n

$optional_delimiter     = 'detect';

$default_folder_prefix          = 'INBOX.';
$trash_folder                   = 'Trash';
$sent_folder                    = 'Sent';
$draft_folder                   = 'Drafts';

Pavel, 2009-10-30

© 1999-2016 by The SquirrelMail Project Team