《Linux菜鳥入門2》空殼郵件服務


●空殼郵件j_0057.gif

 1.引入空殼郵件的意義

    郵件服務器直接暴露在網絡環境下安全性會大大降低,所以引入“空殼服務器”是爲了保證真正服務器的安全,空殼服務器的功能就是將受到的郵件轉發(雙向的)。

 2.製作空殼郵件

    在配置好DNS的前提下:

    空殼服務器配置(maillinux.linux.com):

 

    vim /etc/named.rfc1912.zones

    cd /var/named/

    cp -p westos.com.zone westos.org.zone

    vim westos.org.zone

    將之前的郵件服務配置刪除,reinstall重新安裝postfix服務,修改配置文件

    rm -fr /etc/postfix/main.cf

    yum reinstall postfix -y

    systemctl restart postfix.service

    vim /etc/postfix/main.cf

  

    systemctl restart postfix.service

   

    systemctl start mariadb

    systemctl start httpd

    systemctl stop firewalld

    cd /home/vmail/

    rm -fr westos.org/

    vim /etc/postfix/main.cf

    systemctl restart postfix.service

 3.測試。


    向空殼郵件服務器(maillinux.linux.com)發送郵件,在真正服務器(mailwestos.westos.com)用watch -n 1 命令監測空殼服務器是否將郵件轉發


 4.注意

    

    在本次實驗中firewalld.service需要關閉。



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章