windows 2003系统下邮件系统搭建
来源:互联网 发布:帝国文明源码下载 编辑:程序博客网 时间:2024/05/19 21:00
邮箱搭建
一、运行平台:windowsserver2003
二、所需软件:mysql 、WAMP(windows+apache+mysql+php)、Hmailserver(官网:www.hmailserver.com)、roundcube(官网: http://www.roundcude.net)
三、安装步骤:
1、安装mysql,密码:zxc
参考http://wenku.baidu.com/view/4de81840be1e650e52ea99ef.html;虽然wamp本身会携带mysql,但是为了企业邮箱数据管理方便,则选择自己的数据库。
2其次,安装WAMPServer,更是傻瓜式安装。安装完成后,不要忘记输入http://localhost测试下哦。您也可以输入http://localhost/phpmyadmin测试访问下您的MYSQL数据库。注意,由于已经安装过MYSQL数据库,因此,wamp自带的服务 wampmysqld服务将不会运行,可以再安装mysql客户端Mysql Query browser
3、Hmailserver安装,需要注意的是1、事先没有安装.NetFramework2.0会有提示,此时可以自行下载安装;2、会有数据库连接的选择,可以选择自己的数据库;3、汉化hmailserver,下载汉化文件,把汉化文件里的chinese.ini复制到hMailServer安装目录的languages目录下,然后打开到bin目录下的hMailServer.ini文件,在GUILanguage字段下增加chinese的支持。
参考:http://wenku.baidu.com/view/a473330e52ea551810a68768.html
4、roundcube(webmail)的安装;将roundcube解压至wamp的www目录下修改的config目录下的db.inc.php.dist和main.inc.php.dist。去掉.dist后缀,然后主要对如下几项修改配置:
db.inc.php
// postgres example:'pgsql://roundcube:pass@localhost/roundcubemail';
// Warning: for SQLite use absolute path in DSN:
// sqlite example:'sqlite:////full/path/to/sqlite.db?mode=0646';
//$rcmail_config['db_dsnw'] = //'mysql://username:password@hostname/databasename';
$rcmail_config['db_dsnw'] = 'mysql://root:zxc@localhost/zxc;
main.inc.php
$rcmail_config['default_host'] = 'localhost';
$rcmail_config['smtp_server'] = 'localhost';
$rcmail_config['username_domain'] = 'zxc.cn';//域名
//这里是安装的修改密码插件
$rcmail_config['plugins'] = array('password');
$rcmail_config['language'] = 'zh-CN';
// 自动创建邮件夹
$rcmail_config['create_default_folders'] = true;
由于修改密码功能是必须的,因此,还需要password 这个插件。 修改plugins\password\config.inc.php。主要配置如下:
$rcmail_config['password_db_dsn'] ='mysql://username:password@hostname/databasename';
//最短密码长度
$rcmail_config['password_minimum_length'] = 6;
//修改密码。这个问题困扰了我很久,就是和 hMailServer里面的对应不起来,后来才知道是accountpwencryption 的问题。
$rcmail_config['password_query']='UPDATE hm_accountsSET accountpassword=md5(%p),accountpwencryption = 2 WHERE accountaddress=%uLIMIT 1';
$rcmail_config['password_hash_algorithm'] = 'md5';
以上步骤都设置完毕,往外发邮件和内部互发已经没问题了。如果要收取外网(例如网易等)邮件,还需要为服务器分配公网IP地址,做好域名解析,同时映射25、80、110三个端口即可。
四、问题与解决
Ø 刚开始出现session和users 问题,表明客户端数据库没有生成。
解决:把ronndcube中的数据库mysql.initial.sql 中的sql语句运行下
Ø 只有localhost和127.0.0.1可登录,IP会出现403-禁止。
输入IP登录不了,看提示是403禁止访问,apache的问题,再改一下webmail.conf跟phpwebadmin.conf文件,最后的Allowfrom 127.0.0.1后面加上192.168.0.0/16 ,同时配置wamp\Apache2\conf目录下的httpd.conf,
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.1 192.168.0.0/16
Satisfy all
</Directory>
在127.0.0.1后面加上192.168.0.0/16即可。
- windows 2003系统下邮件系统搭建
- Windows下搭建openmeetings系统
- Windows系统下搭建Redis
- Windows系统下搭建Redis
- windows 2003 系统下搭建mysql+PHP+zend环境(二)
- 用windows 2003实现局域网邮件系统
- 搭建一个windows下的蜜罐系统
- 搭建一个Windows下的蜜罐系统
- Windows系统下搭建MPI环境
- windows系统下搭建NT32环境
- windows 系统下 android ndk 环境搭建
- windows系统下Python环境的搭建
- 搭建windows系统下的Git服务器
- windows系统下Python环境的搭建
- windows系统下Python环境的搭建
- windows系统下Python环境的搭建
- windows系统下Python环境的搭建
- windows系统下Python环境的搭建
- rs.next()
- Android ffmpeg 3.4 JNI移植 NDK编译播放 ffserver 推送的 Rtsp 视频流
- 【学习贴】Ps终极动画练习
- 五子棋人机
- Python3-搭建Django框架
- windows 2003系统下邮件系统搭建
- Flume安装-配置-调试
- workerman中使用aes加密
- MyBatis Mapper XML 符号处理
- c#反射中GetMethods()和GetCustomAttributes()方法
- nmap核心结构概述
- 几十部以程序员为主角的影片
- leetcode24. Swap Nodes in Pairs
- Java编程思想笔记-二