Postfix的郵件監控
一、修改main.cf
vi /etc/postfix/main.cf
添加以下內容:
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc
sender_bcc_maps = hash:/etc/postfix/sender_bcc
二、新建文件
1.touch /etc/postfix/recipient_bcc
2. touch /etc/postfix/sender_bcc
三、建立監控郵件
1. 建立接受監控郵件的賬戶:monitor@163.com
2. 建立被監控的郵件:
vi /etc/postfix/recipient_bcc
wangwu@163.com monitor@163.com
vi /etc/postfix/sender_bcc
wangwu@163.com monitor@163.com
四、建map數據庫
1. postmap /etc/postfix/recipient_bcc
2. postmap /etc/postfix/sender_bcc
五、重啟服務
service postfix restart
【編輯推薦】