關于hmaiserver的簡介參見百度百科“hmailserver”。http://baike.baidu.com/view/3992873.htm
關于安裝步驟參見百度文庫“hmailserver安裝配置指南”。
http://wenku.baidu.com/view/a473330e52ea551810a68768.html
因工作中需用到一個簡單的開源郵件伺服器程式,并且是windows平台下,找來找去,找到了hmailserver.
本來要選擇mdaemon破解版,奈何放到server2008下,程序起來了,無論如何也找不到配置界面,隻得放棄
,而cmailserver在網上找到的所謂破解版都是5使用者demo版,也無多大用處。
下載下傳相應軟體,按照配置文檔,一路next。
添加bobo365.com域,設定使用者[email protected]。
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiIwkjNmYTM2kDZxcjZhZDZhdGZjZDOjFDM18CXlxGZklWbvwlbj5yZtlWYul2cuczcvw1LcpDc0RHaiojIsJye.jpg)
web方式管理:
在foxmail用戶端進行設定後發送郵件測試。
接收成功。
hmailserver本身無webmail功能,需借助其他軟體。測試使用squirrelmail。網上也有一些使用afterlogic
webmail lite,看個人愛好。
建立目錄temp。
建立目錄temp\userpref、temp\upload
進入目錄d:\hmail\webmail\config
修改config_default.php為config.php
配置該檔案内以下幾項:
(說明:全局配置可以在本檔案中修改,以替換config.php中的配置資訊)
1、組織設定
#########################################################
organization preferences
1. organization name : squirrelmail 根據具體情況修改
2. organization logo : ../p_w_picpaths/sm_logo.png 根據具體情況修改
3. org. logo width/height : (308/111)
4. organization title : squirrelmail $version 根據具體情況修改
5. signout page : 根據具體情況修改
6. default language : en_us 改成zh_cn
7. top frame : _top
8. provider link : http://www.squirrelmail.org/
9. provider name : squirrelmail
2、伺服器選項
server settings
general
-------
1. domain : mydomain.com 改成自己的域名
2. invert time : false
3. sendmail or smtp : smtp 建議改成sendmail
a. update imap settings : localhost:143 (cyrus) 改成(courier)
b. update smtp settings : localhost:25
3、全局設定
general options
1. default charset : iso-8859-1 改成gb2312
2. data directory : ../data/ 根據具體情況修改
3. attachment directory : $data_dir 最好和data目錄分開
4. directory hash level : 0 大使用者量可改至4
5. default left size : 150
6. usernames in lowercase : false 改成true
7. allow use of priority : true
8. hide sm attributions : false 改成true
9. allow use of receipts : true
10. allow editing of identity : true/true
11. allow server thread sort : false
12. allow server-side sorting : false
13. allow server charset search : true 改成false
14. enable uid support : true
15. php session name : sqmsessid
4、改好後選擇儲存并退出。再檢查config/config.php檔案,如果$data_dir為空的話,再 把正确的值填入
。這是它的一個bug。
5、确認以下幾項是設定正确
#########################################################
$domain = "localhost.local"; // your hmailserver address
$smtpserveraddress = "localhost.local"; // your hmailserver address
$imapserveraddress = "localhost.local"; // your hmailserver address
$imap_server_type = "hmailserver";
$data_dir = "xx/xx/data/"; //有别于web目錄下的路徑
$p_w_upload_dir = "xx/xx//attach/"; //有别于web目錄下的路徑
其中data_dir需要有iusr寫權限。
完成上述配置後,就可以輸入url通路了,界面很簡潔,登入後可以看見hmail上的曆史郵件,但是預設是e
文,還需要下載下傳中文語言包,下載下傳後解壓到系統路徑下,重新重新整理頁面即可看到中文界面了。
webmail收發測試:
接收成功:
後記:
在實際項目使用中,發現發往部分域的郵件被退回,顯示“helo command rejected: need fully-qualified hostname”。原因是伺服器在helo指令中提供的域名不能被解析,解決方法,在smtp設定,添加中繼郵箱即可。