centos 6.5 搭建郵件服務postfix和dovecot
------------------------------------------------安裝DNS 指定郵件交換記錄 ------------------------------------------------
DNS服務詳解:http://blog.51cto.com/13767783/2149216
安裝DNS服務
centos 6.5伺服器搭建郵件服務postfix和dovecot 然後修改配置檔案
centos 6.5伺服器搭建郵件服務postfix和dovecot 修改完成後儲存退出
修改區域配置檔案
centos 6.5伺服器搭建郵件服務postfix和dovecot
centos 6.5伺服器搭建郵件服務postfix和dovecot 複制編輯模闆準備修改區域資料檔案
centos 6.5伺服器搭建郵件服務postfix和dovecot 修改區域資料檔案
centos 6.5伺服器搭建郵件服務postfix和dovecot
centos 6.5伺服器搭建郵件服務postfix和dovecot 修改完成後重新開機下DNS服務
centos 6.5伺服器搭建郵件服務postfix和dovecot 自測下
centos 6.5伺服器搭建郵件服務postfix和dovecot --------------------------------------------配置POSTFIX郵件發送---------------------------------------------------
1.postfix一般系統預設安裝
修改配置檔案
centos 6.5伺服器搭建郵件服務postfix和dovecot 監聽位址設定為all
inet_interfaces = all #監聽服務的IP位址
centos 6.5伺服器搭建郵件服務postfix和dovecot 設定郵件伺服器的主機名為mail.benet.com
myhostname = mail.benet.com #郵件伺服器主機名
mydomain = benet.com #郵件域名
centos 6.5伺服器搭建郵件服務postfix和dovecot myorigin= $mydomain #發件人郵件位址域名
centos 6.5伺服器搭建郵件服務postfix和dovecot home_mailbox = Maildir/ #郵件存放位置
centos 6.5伺服器搭建郵件服務postfix和dovecot 建立郵箱伺服器的位址的映射關系
centos 6.5伺服器搭建郵件服務postfix和dovecot
centos 6.5伺服器搭建郵件服務postfix和dovecot 修改完成儲存退出
centos 6.5伺服器搭建郵件服務postfix和dovecot 看一下端口,postfix的端口是25,表示開啟了,因為我是對所有位址都可以使用
centos 6.5伺服器搭建郵件服務postfix和dovecot -----------------------------安裝dovecot郵件接收---------------------------------
安裝dovecot
centos 6.5伺服器搭建郵件服務postfix和dovecot 安裝完成後修改配置檔案
centos 6.5伺服器搭建郵件服務postfix和dovecot protocols = imap pop3 lmtp #開啟協定
centos 6.5伺服器搭建郵件服務postfix和dovecot login_trusted_networks = 192.168.100.0/24 #指定伺服器所在網段
centos 6.5伺服器搭建郵件服務postfix和dovecot !include conf.d/*.conf #一般情況下預設就有
centos 6.5伺服器搭建郵件服務postfix和dovecot
centos 6.5伺服器搭建郵件服務postfix和dovecot mail_location = maildir:~/Maildir #開啟郵箱的位置及格式
centos 6.5伺服器搭建郵件服務postfix和dovecot 修改完成後啟用dovecot
centos 6.5伺服器搭建郵件服務postfix和dovecot 啟用後,輸入指令netstat –tnl 檢視下服務的端口開啟了沒有 - DNS 郵件交換記錄 目的是解析郵箱的域名 搭建 53端口
- Postfix 郵件發送 25端口
- Dovecot 郵件接收 IMAP4 143端口 POP3 110端口
centos 6.5伺服器搭建郵件服務postfix和dovecot ------------------------------------郵箱驗證------------------------------------------------
zhangsan和 lisi 放到mailusers裡【zhangsan和lisi 這兩個使用者原來建立過】