快速搭建郵件系統postfix
阿新 • • 發佈:2021-07-06
由於公司郵件系統準備遷移,一直在準備方案。其中有一個方案就是自己來搭建postfix。而我就表示任務有點大了。
簡單的搭建郵件系統:
1.只需要一個linux系統即可,我的linux伺服器ip是192.168.0.173。如果是自己實驗,配置yum源。然後
yum -y install postfix* httpd* dovecot*
2.hostname mail.hello.com
3.vi /etc/postfix/main.cf 修改如下幾行
- 69myhostname=mail.hello.com
- 77mydomain=hello.com
- 110inet_interfaces=all
- 155mydestination=$myhostname, $mydomain
- 92myorigin=$myhostname
- 93myorigin=$mydomain
4.關閉sendmail,啟動postfix。啟動dovecot
service sendmail stop
service postfix start
netstat -an | grep :25
service dovecot restart
5.新建兩個使用者。tom和 jerry。使用者新增好後,別忘了:postmap /etc/postfix/virtual(否則可能不會生效)
在客戶端win7驗證下:
檢視收信:
二。現在我們再linux上,安裝postfix的網頁端
yum -y install squirrelmail*
service httpd restart
在win7上訪問:http://192.168.0.173/webmail
本文出自 “濛sir的積累” 部落格,轉載請與作者聯絡!