Redhat 安装squirrelmail

squirrelmail可实现Web方式接收和发送邮件。

邮件服务器的搭建参考上篇《Redhat配置邮件服务器(postfix+dovecot》

1.安装squirrelmail

yum -y install squirrelmail

2.配置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 >> 

 或者直接修改配置文件:/usr/share/squirrelmail/config/config.php

[[email protected] config]# more  /usr/share/squirrelmail/config/config.php
<?php

/**
 * SquirrelMail Configuration File
 * Created using the configure script, conf.pl
 */

global $version;
$config_version = '1.4.0';
$config_use_color = 1;

$org_name      = "SquirrelMail";
$org_logo      = SM_PATH . 'images/sm_logo.png';
$org_logo_width  = '308';
$org_logo_height = '111';
$org_title     = "SquirrelMail $version";
$signout_page  = '';
$frame_top     = '_top';

$provider_uri     = 'http://squirrelmail.org/';

$provider_name     = 'SquirrelMail';

$motd = "";

$squirrelmail_default_language = 'en_US';
$default_charset       = 'iso-8859-1';
$lossy_encoding        = false;

$domain                 = 'anyone.com';
$imapServerAddress      = 'mail.anyone.com';
$imapPort               = 143;
$useSendmail            = false;
$smtpServerAddress      = 'mail.anyone.com';
$smtpPort               = 25;
$sendmail_path          = '/usr/sbin/sendmail';
$sendmail_args          = '-i -t';
$pop_before_smtp        = false;
$pop_before_smtp_host   = '';
$imap_server_type       = 'dovecot';
$invert_time            = false;
$optional_delimiter     = '/';
$encode_header_key      = '';

3. 检查下squirrelmail.conf 是否配置Alias

[[email protected] conf.d]# more /etc/httpd/conf.d/squirrelmail.conf 
#
# SquirrelMail is a webmail package written in PHP.
#

Alias /webmail /usr/share/squirrelmail
 

4. 修改httpd.conf ,添加以下内容。

[[email protected] conf.d]# tail /etc/httpd/conf/httpd.conf 

<Directory /usr/share/squirrelmail >
Options indexes FollowSymLinks
RewriteEngine On
AllowOverride All
Directoryindex index.php
Order allow,deny
Allow from all
</Directory>

5.开启服务

service httpd start
service postfix start
service dovecot start
service named start

6.测试在IE中输入 http://mail.anyone.com/webmail

Redhat 安装squirrelmail

Redhat 安装squirrelmail