TECHIES WORLD

For Techs.... Techniques.... Technologies....

ApacheCpanelLinuxMysqlPHP

How to install Squirrelmail in Linux server

SquirrelMail is a standards-based webmail package written in PHP. It includes built-in pure PHP support for the IMAP and SMTP protocols, and all pages render in pure HTML 4.0 (with no JavaScript required) for maximum compatibility across browsers. It has very few requirements and is very easy to configure and install.

If you need to install custom squirrelmail for a domain, you can follow the below steps.

Step1- Download a stable version of squirrelmail from http://www.squirrelmail.org/download.php

Step2- Extract the contents to /home/username/public_html/squirrelmail

Step3- Change the location to the required one

# cd /home/username/public_html/squirrelmail

Step4- Create a folder with name .mysqmail

# mkdir .mysqmail

Step5- Create a data and tmp folder inside .mysqmail

# cd .mysqmail

# mkdir tmp

# mkdir data

Step6- Change the permissions of newly created folders as given below.

# chmod 777 .mysqmail
# chmod 770 data
# chmod 730 tmp

Step7- Copy the default_pref from the data folder that came with your squirrelmail package over to your new data folder.

#cp /home/username/public_html/squirrelmail/data/default_pref  /home/username/public_html/squirrelmail/.mysqmail/data/ 

Step8- Change the location to the config directory

# cd /home/username/public_html/squirrelmail/config

Step9- Rename  config_default.php to config.php

# cp config_default.php config.php

Step10- Edit this config.php file as like in below.

$domain = 'domain.com';
$useSendmail = true;
$smtpServerAddress = 'localhost';
$smtpPort = 25;
$sendmail_path = '/usr/sbin/sendmail';
$imapServerAddress = 'localhost';
$imapPort = 143;
$imap_server_type = 'uw';
$use_imap_tls = false;
$use_smtp_tls = false;
$smtp_auth_mech = 'none';
$imap_auth_mech = 'login';
$optional_delimiter = 'detect';
$pop_before_smtp = false;
$default_folder_prefix = '';
$show_prefix_option = false;
$default_move_to_trash = true;
$default_move_to_sent = true;
$default_save_as_draft = true;
$trash_folder = 'INBOX.Trash';
$sent_folder = 'INBOX.Sent';
$draft_folder = 'INBOX.Drafts';
$auto_expunge = true;
$delete_folder = false;
$use_special_folder_color = true;
$auto_create_special = true;
$list_special_folders_first = false;
$default_sub_of_inbox = false;
$show_contain_subfolders_option = false;
$default_unseen_notify = 2;
$default_unseen_type = 1;
$noselect_fix_enable = false;
$default_charset = 'iso-8859-1';
$data_dir = '/home/username/public_html/.mysqmail/data';
$attachment_dir = '/home/username/public_html/.mysqmail/tmp';
$dir_hash_level = 0;
$default_left_size = '150';
$force_username_lowercase = true;
$default_use_priority = true;
$hide_sm_attributions = true;
$default_use_mdn = true;
$edit_identity = false;
$edit_name = true;
$allow_thread_sort = false;
$allow_server_sort = false;
$allow_charset_search = true;
$uid_support = true;
$session_name = 'SQMSESSID';

That's all... You can access the squirrel mail in the url http://domain.com/squirrelmail.

Leave a Reply