emos郵件監控

已測試成功!!!

#vi /etc/postfix/main.cf
#設置發信的監控列表
sender_bcc_maps = hash:/etc/postfix/sender_bcc_map
#設置收信的監控列表
recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_map

#vi /etc/postfix/sender_bcc_map
#user1@fanzhengyuan.com發送的全部郵件都轉發一份到user2@fanzhengyuan.com
user1@fanzhengyuan.com        user2@fanzhengyuan.com

#vi /etc/postfix/recipient_bcc_map
#user1@fanzhengyuan.com接受的全部信件都轉發一份到user2@fanzhengyuan.com
user1@fanzhengyuan.com        user2@fanzhengyuan.com

注意:兩個列表內容中,郵件地址之間必定要用 "tab" 鍵相隔

#postmap hash:/etc/postfix/sender_bcc_map
#postmap hash:/etc/postfix/recipient_bcc_map
#postfix reload



endweb

同一域中郵件監控:

發信監控:
user1@fanzhengyuan.com發送user1@fanzhengyuan.com/user3@fanzhengyuan.com經過sender_bbc_map

發送給user2@fanzhengyuan.com,實現user1@fanzhengyuan.com發出的郵件被抄送到

user2@fanzhengyuan.com郵箱

foxmail
i:        user1發送給user1,發信監控到user2       
ii:        user1發送到user3,發信監控到user2       

webmail
i:        user1發送給user1,發信監控到user2       
ii:        user1發送到user3,發信監控到user2       


收信監控:
user1@fanzhengyuan.com/user3@fanzhengyuan.com發送user1@fanzhengyuan.com經過

recipient_bbc_map發送給user2@fanzhengyuan.com,實現user1@fanzhengyuan.com收到的郵件被抄送

user2@fanzhengyuan.com郵箱

foxmail
i:        user1發送給user1,收信監控到user2       
ii:        user3發送到user1,收信監控到user2       

webmail
i:        user1發送給user1,收信監控到user2       
ii:        user3發送到user1,收信監控到user2       



請問紅字標記的部分,應該是有相交,爲什嗎在測試過程當中,只有一封郵件而不是兩封?


/etc/postfix/sender_bcc_map
/etc/postfix/recipient_bcc_map
兩個文件中分別都有:
user1@fanzhengyuan.com    user2@fanzhengyuan.com

 ide

相關文章
相關標籤/搜索