天天看点

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

前几篇文章,我们介绍了有关postfix的相关安装与配置,这篇文章我们再来介绍下,在web下管理postfix的软件roundcube webmail。

要安装roundcube webmail,我们先要下载roundcube webmail,如下:

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

解压roundcube webmail软件包,并移动到apache根目录下,如下:

tar -xf roundcubemail-1.1.4-complete.tar.gz

mv roundcubemail-1.1.4 /var/www/html/webmail/

chown -r apache:apache /var/www/html/webmail/

chmod -r 755 /var/www/html/webmail/

ll /var/www/html/webmail/

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

roundcube webmail依赖php的相关模块比较多,所以我们先要对其进行安装下。

安装php相关模块,首先更新php的软件源,如下:

pear channel-update pear.php.net

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

安装php相关模块,如下:

pear install auth_sasl net_smtp net_idna2-0.1.1 mail_mime

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

修改php.ini时区,如下:

vim /etc/php.ini +889

date.timezone = asia/chongqing

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

以上修改完毕后,重启apache,使用如下命令:

/etc/init.d/httpd restart

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

创建roundcube webmail所需要的数据库,如下:

mysql -uroot -p’123456′ -e “create database webmail default character set utf8 collate utf8_bin;” && mysql -uroot -p’123456′ -e “grant all on webmail.* to ‘webmail’@’%’ identified by ‘webmail’;”

mysql -uwebmail -pwebmail

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

以上全部操作完毕后,我们可以访问如下连接:

http://mail.ilanni.com/webmail/installer/index.php

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail
Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail
Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

通过以上截图,我们可以很明显的看出roundcube webmail所需要的基础环境已经全部正确配置。

下面我们开始配置roundcube webmail,如下:

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

注意:以上我们可以默认,也可以进行自定义,在此我自定义了product_name选项。

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail
Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

该选项主要配置roundcube webmail连接mysql数据库相关的配置,这个只需要填写我们在基础环境中配置的数据库名称、用户名、密码即可。

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

这个界面,主要配置imap相关的一些信息,其中default_host和username_domain根据自己的实际情况进行填写,其他保持默认即可。

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

这个界面主要配置和smtp相关的一些信息,其中smtp_server根据自己的实际情况进行填写,其他保持默认即可。

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

这个界面主要配置roundcube webmail显示的一些信息,中language填写zh_cn,其他保持默认即可。

以上填写完毕后,我们基本上就把roundcube webmail安装完毕。现在我们来配置roundcube webmail,其实roundcube webmail的配置基本上也是在这个界面进行操作的。如下:

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail
Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

配置文件测试没有问题了,我们就可以初始化roundcube webmail数据库,如上操作。

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

初始化完毕后,我们来数据库中查看下,如下:

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

通过上图,我们可以很明显的看出roundcube webmail数据库已经初始化完毕。现在我们来测试下roundcube webmail相关功能,如下:

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail
Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

通过上图,我们可以很明显的看出roundcube webmail发送邮件功能是正常的。

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

通过上图,我们可以很明显的看出roundcube webmail的imap收件功能是正常的。

以上配置完毕后,我们现在来登录roundcube webmail,如下:

<a href="http://mail.ilanni.com/webmail/">http://mail.ilanni.com/webmail/</a>

Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail
Postfix邮件服务器搭建之roundcube webmail安装与配置一、下载roundcube webmail软件包二、配置roundcube webmail基础环境三、安装roundcube webmail四、配置roundcube webmail五、登录roundcube webmail

通过上图,我们可以很明显的看出roundcube webmail已经可以正常登录,并且收发邮件。