User login

Installing SquirrelMail

cd /usr/local/src/
sudo install -d /usr/local/src/downloads
cd downloads/
sudo wget http://squirrelmail.org/countdl.php?fileurl=http%3A%2F%2Fprdownloads.sourceforge.net%2Fsquirrelmail%2Fsquirrelma...

sudo mkdir /usr/local/squirrelmail
cd /usr/local/squirrelmail
sudo mkdir data temp
sudo chgrp nogroup data temp
sudo chmod 0730 data temp
cd /usr/local/squirrelmail
sudo tar -xvzf /usr/local/src/downloads/squirrelmail-1.4.13.tar.gz
sudo mv squirrelmail-1.4.13/ www
sudo vi /etc/apache2/sites-available/squirrelmail

Alias /squirrelmail /usr/local/squirrelmail/www

Options Indexes
AllowOverride none
DirectoryIndex index.php
Order allow,deny
allow from all

sudo a2ensite squirrelmail
sudo /etc/init.d/apache2 reload

SquirrelMail configtest

This script will try to check some aspects of your SquirrelMail configuration and point you to errors whereever it can find them. You need to go run conf.pl in the config/ directory first before you run this script.

SquirrelMail version: 1.4.13
Config file version: 1.4.0
Config file last modified: 11 March 2008 17:32:56
Checking PHP configuration...
PHP version 5.2.0-8+etch7 OK.
display_errors: 1
error_reporting: 6135
variables_order OK: EGPCS.
PHP extensions OK.
ERROR: You have enabled any one of magic_quotes_runtime, magic_quotes_gpc or magic_quotes_sybase in your PHP configuration. We recommend all those settings to be off. SquirrelMail may work with them on, but when experiencing stray backslashes in your mail or other strange behaviour, it may be advisable to turn them off.

Checking paths...
ERROR: Data dir (/var/local/squirrelmail/data/) does not exist!

I went back to config to use /usr/ instead of /var/ ...

And now:

ERROR: I cannot write to data dir (/usr/local/squirrelmail/data/)!

ben@server:/usr/local/squirrelmail$ sudo chown www-data:www-data data temp

Now:

Checking paths...
Data dir OK.
ERROR: Attachment dir (/usr/local/squirrelmail/attach/) does not exist!

ben@server:/usr/local/squirrelmail$ sudo mkdir attach
ben@server:/usr/local/squirrelmail$ sudo chown www-data:www-data attach

Checking paths...
Data dir OK.
Attachment dir OK.
Plugins OK.
Themes OK.
Default language OK.
Base URL detected as: http://66.135.37.243/squirrelmail/src (location base autodetected)
Checking outgoing mail service....
SMTP server OK (220 mail.democraticmedia.ca ESMTP Postfix (Debian/GNU))
Checking IMAP service....
IMAP server ready (* OK Dovecot ready.)
Capabilities: * CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS STARTTLS AUTH=PLAIN AUTH=LOGIN
Checking internationalization (i18n) settings...
gettext - Gettext functions are available. On some systems you must have appropriate system locales compiled.
mbstring - Mbstring functions are available.
recode - Recode functions are unavailable.
iconv - Iconv functions are available.
timezone - Webmail users can change their time zone settings.
Checking database functions...
not using database functionality.
Congratulations, your SquirrelMail setup looks fine to me!

Logged in, and got:

ERROR:
ERROR: Could not complete request.
Query: CREATE "Sent"
Reason Given: Unknown namespace.

Some potentially useful forum support posts:

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/ 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

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):

8. Server Software: other
9. Delimiter: detect
Under "Folder Defaults" (3):

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

http://www.squirrelmail.org/wiki/InvalidMailboxName

THE ANSWER:

Set Default folder prefix to INBOX.

http://workaround.org/pipermail/workaround-chitchat/2007-November/000602.html

cd /usr/local/squirrelmail
sudo www/config/conf.pl

... and made that change in default mailboxes, I think option 3, default folder prefix, option 1.

Resolution

Searched words: 
ERROR: Could not complete request Reason Given Unknown namespace SquirrelMail

Comments

good work

home based business earn money Work at home

Damn it!!

I already have a home based business which earns money , and I already work from home!!

bodybuilding forums

Great article on installing squirrelmail. A nice app for cpanel.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.