Linux Apps Tutorials - Herong's Tutorial Examples - v1.03, by Herong Yang
SquirrelMail Configuration on CentOS
This section provides a tutorial example on how to configure SquirrelMail on CentOS to integrate with localhost Postfix and Dovecot servers.
After you installed SquirrelMail on the Web server, you need to configure it to integrate with local Postfix and Dovecot servers on the same host.
1. Run the configuration Perl script:
herong$ cd /var/www/html/mail herong$ sudo perl config/conf.pl SquirrelMail Configuration : Read: config_default.php Config version 1.4.0; SquirrelMail version 1.4.23 [SVN] --------------------------------------------------------- Main Menu -- 1. Organization Preferences 2. Server Settings 3. Folder Defaults 4. General Options 5. Themes 6. Address Books 7. Message of the Day (MOTD) 8. Plugins 9. Database 10. Languages D. Set pre-defined settings for specific IMAP servers C Turn color on S Save data Q Quit Command >>
2. Using the interactive commands to make the following changes. Don't forget to save the changes.
Organization Preferences > Organization Name: HerongYang.com Server Settings > Domain: herongyang.com Server Settings > Sendmail or SMTP: SMTP Server Settings > Update IMAP Settings: localhost:143 (other) Server Settings > Update SMTP Settings: localhost:25 General Options > Data Directory: /var/www/html/mail/data/ General Options > Attachment Directory: /var/www/html/mail/attach/ Language preferences > Default Charset: utf8
3. Create data and attachment directories.
herong$ cd /var/www/html/mail herong$ sudo mkdir data herong$ sudo chown -R apache data herong$ sudo mkdir attach herong$ sudo chown -R apache attach herong$ sudo chmod -R 0730 attach
4. Try to login from SquirrelMail Web address, http://192.168.1.100/mail. I get an error:
Error opening ../data/default_pref Could not create initial preference file! /var/www/mail/data/ should be writable by user httpd Please contact your system administrator and report this error.
5. Fix the SELinux security context problem on the data directory.
herong$ cd /var/www/html/mail herong$ sudo chcon -t tmp_t -R data
6. Try to login again and still get the same error. Looks like we have a bug in the SquirrelMail 1.4.23-svn version.
7. Download, install and configure the SquirrelMail 1.4.22 version.
8. And try to login again. I see no problems with SquirrelMail 1.4.22!
9. Make sure that Postfix and Dovecot servers are running on the CentOS computer locally.
10. Send and retrieve emails with Postfix and Dovecot servers with no problem.
11. Try to send an email with an attachment. I get an error: "Could not move/copy file. File not attached"
12. Fix the SELinux security context problem on the attachment directory.
herong$ cd /var/www/html/mail herong$ sudo chcon -t tmp_t -R attach
13. Send an email with an attachment with no problem.
Please note that:
Table of Contents
Running Apache HTTP Server (httpd) on Linux Systems
Running Apache Tomcat on Linux Systems
Running PHP Scripts on Linux Systems
Running MySQL Database Server on Linux Systems
Running Python Scripts on Linux Systems
Conda - Environment and Package Manager
Graphics Environments on Linux
►SquirrelMail - Webmail in PHP
SquirrelMail Webmail Installation on CentOS
►SquirrelMail Configuration on CentOS
SquirrelMail for Mail Server on Local Network
SquirrelMail Configuration for IMAPS Port 993
Provide Self Signed Certificate to SquirrelMail
SquirrelMail Configuration for SMTPS Port 465