squirrelmail 小松鼠的安装和配置

来源:互联网 发布:知乎是社交软件吗 编辑:程序博客网 时间:2024/03/28 21:45
squirrelmail 小松鼠的安装和配置

、前提条件

postfix、dovecot服务的配置

LAMP环境搭建完毕
 
二、squirrelmail的配置

/usr/share/squirrelmail/config/conf.pl


显示如下:

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
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 off
S   Save data
Q   Quit

Command >> 2

SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Server Settings

General
-------
1.  Domain                 : ning.com
2.  Invert Time            : false
3.  Sendmail or SMTP       : SMTP

A.  Update IMAP Settings   : mail.ning.com:143 (uw)
B.  Update SMTP Settings   : mail.ning.com:25

R   Return to Main Menu
C   Turn color off
S   Save data
Q   Quit

Command >> s

保存即可


三、Apache 关联 Squirrelmail

在apache 配置文件新建一个 squirrelmail 虚拟目录

vim /etc/httpd/conf/httpd.conf
Alias /webmail /usr/share/squirrelmail<Directory /usr/share/squirrelmail >Options indexes FollowSymLinksRewriteEngine OnAllowOverride AllDirectoryindex index.phpOrder allow,denyAllow from all</Directory>

四、修改bool值


setsebool -P httpd_can_sendmail 1
setsebool -P httpd_can_network_connect 1

五、测试

service httpd restart #重启服务
service postfix restart
service dovecot restart

打开网页 输入 http://192.168.1.22/webmail


0 0