Using squirrelmail in Plesk

Configuring apache for squirrelmail following this tutorial is not enough. You’ll need to configure squirrelmail too. Edit your /etc/squirrelmail/config_local.php file and paste the following configuration:

// courier-imap settings
$imap_server_type       = 'courier';
$default_folder_prefix  = 'INBOX.';
$trash_folder           = 'Trash';
$sent_folder            = 'Sent';
$draft_folder           = 'Drafts';
$show_prefix_option     = false;
$default_sub_of_inbox   = false;
$show_contain_subfolders_option = false;
$optional_delimiter     = '.';
$delete_folder          = true;
$force_username_lowercase = false;
 
// other settings
$default_charset        = 'iso-8859-1';
$lossy_encoding         = false;
$sendmail_args          = '-i -t';
$encode_header_key      = '';
$hide_auth_header       = false;
$plugins[3] = 'filters';
$abook_global_file = '';
$abook_global_file_writeable = false;
 
$addrbook_global_dsn = '';
$addrbook_global_table = 'global_abook';
$addrbook_global_writeable = false;
$addrbook_global_listing = false;

3 comments ↓

#1 Ciprian Pantea on 05.18.09 at 4:41 pm

How to enable autoadding of domain to username when one logins? Is it a squirrelmail configuration or a plesk configuration?

#2 Vitalie Cherpec on 05.19.09 at 11:30 pm

Squirrelmail forwards requests to IMAP server (username, password), there is an options in Plesk to allow users to authenticate without domain:

Server -> Mail -> Server-wide mail preferences

“Use of short (webmaster) and full (webmaster@domain.com) POP3/IMAP mail account names is allowed”

If you are not satisfied with this solution search for a Squirrelmail plugin.

#3 Alparslan on 06.19.09 at 2:59 pm

I can’t change folder names . because this error accrue

ERROR: Could not complete request.
Sorgu: CREATE “Sent”
Reason Given: Invalid mailbox name.

when I change this values, it was fixed but I don’t want to see INBOX. prefix.

$trash_folder = ‘INBOX.Trash’;
$sent_folder = ‘INBOX.Sent’;
$draft_folder = ‘INBOX.Drafts’;

note: All other configuration like bellow. I’ve checked.

Leave a Comment