Để cài đặt Squirrelmail
Mời bạn vào trang
http://www.squirrelmail.org/download.phpĐể down bộ cài về squirrelmail-1.4.15.tar.gz
$ cp squirrelmail-1.4.15.tar.gz /var/www/html
$ cd /var/www/html/
$ tar xfz squirrelmail-1.4.15.tar.gz
$ mv squirrelmail-1.4.15 squirrelmail
$ cd squirrelmail/config/
$ cp config_default.php config.php
Sau đó bạn cấu hình
$squirrelmail_default_language = 'en_US';
$domain = 'example.com';
$imapServerAddress = 'localhost';
$imapPort = 143;
$useSendmail = true;
$smtpServerAddress = 'localhost';
$smtpPort = 25;
Thiết lập Apache để chạy squirrelmail
vi /etc/httpd/conf/httpd.conf
Alias /mail "/var/www/html/squirrelmail/"
<Directory "/var/www/html/squirrelmail/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Sau đó khởi động lại apache
service httpd restart
Mở trình duyệt lên và chạy
http://localhost/mailTrong trường hợp bạn muốn chạy
http://localhost là ra squirrelmail ngay thì hãy chỉnh tham số
DocumentRoot = /var/www/html/squirrelmail/
Thân