標籤:www. hostname cmd serve res new cal lob 軟體版本
windows server 2012R2 部署安裝 hmail環境說明:
系統: windows server2012 R2
軟體版本: hMailServer-5.6.7-B2425.exe
郵件用戶端: foxmail7.2版本
加密工具: hMailServer_SSL_0_9_8j.rar
hMailServer:https://www.hmailserver.org/download/file.php?id=360
hMailServer_SSL:https://www.hmailserver.org/download/file.php?id=72
一.安裝過程:
這裡安裝過程進行省略,使用預設的安裝過程即可 資料庫sql server
二.配置資訊如下:
需要進行配置的地方:
1.佈建網域名
2.配置smtp相容性
3.配置IP段地址
4.建立測試帳號
5.發送郵件進行測試
用建立好的多使用者進行發送郵件測試,均可以正常收發,注意,使用foxmail作為用戶端的時候,伺服器位址要寫對應伺服器所在的IP 位址。
三.配置SSL加密進行測試1.安裝外掛程式
先安裝vcredist_x86.exe,然後進行安裝 再安裝Win32OpenSSL_Light-0_9_8j.exe,預設安裝在C盤
2.配置秘鑰
開啟openssl bin 目錄所在的位置 輸入cmd
openssl genrsa -out key.pem 2048openssl req -new -key key.pem -out request.csrCountry Name (2 letter code) [XX]:cn State or Province Name (full name) []:yunnanLocality Name (eg, city) [Default City]:kunmingOrganization Name (eg, company) [Default Company Ltd]:hmailserver.org Co., Ltd.Organizational Unit Name (eg, section) []:eggCommon Name (eg, your name or your server‘s hostname) []:(填網域名稱)Email Address []: (你的郵件,不用翻譯了吧)please enter the following ”extra" attributes to be sent with your certificate request a challenge password : (這裡的挑戰密碼是指:“挑戰密碼”請求作為CSR產生的一部分,用於將保密祕密金鑰加密的密碼(在請求的密鑰產生的時間時,或當一個清除金鑰加密後 - 然後每次再次請求啟用了SSL的服務使用它啟動時),是兩個單獨的和不同的事情。)你看著辦。An optional company name []: 這裡是公司名。openssl x509 -req -days 365 -in request.csr -signkey key.pem -out certificate.pem
3.服務端進行配置秘鑰
4.地址網段進行配置ssl
注意:這裡使用的Internet SSL 是為了外圍也能使用驗證功能。
5.TCP/IP連接埠進行設定
注意:這一步可以進行不設定 內網測試的時候連接埠要進行對應的設定
smtp:25,pop3:110,imap:143,smtp:587 應該選擇STARTTLS(Optional)smtp:465,imap:993,pop3:995,應該選擇ssl/tls
6.使用用戶端進行發送郵件測試。
經測試外網發送都可以正常進行收發郵件。
windows server 2012R2 部署安裝 hmail