http://stackoverflow.com/questions/22537523/postfix-recipient-bcc-maps-multiple-recipients-how-todom
http://blog.csdn.net/ayumiwang/article/details/8810077post
基本配置:spa
1.編輯主配置文件,加入以下內容 vi /etc/postfix/main.cf recipient_bcc_maps = hash:/etc/postfix/recipient_bcc_maps //收郵件 sender_bcc_maps = hash:/etc/postfix/sender_bcc_maps //發郵件 # always_bcc //監控全部用戶,全部用戶的郵件都會轉發到bb的郵箱 2.編輯recipient_bcc_maps # vi /etc/postfix/recipient_bcc_maps # vi /etc/postfix/sender_bcc_maps 加入以下內容 aa@test.com bb@test.com //aa@test.com 是被監控的人 bb@test.com是收郵件的人 ,中間要用tab鍵隔開 3.編輯完後須要執行 postmap: # postmap hash:/etc/postfix/sender_bcc_maps # postmap hash:/etc/postfix/recipient_bcc_maps 4.將 Postfix reload 後便可生效: # postfix reload
問題,若是要設多個收件人怎麼辦,按照上面方法沒法成功:.net
source@domain.tld rcpt1@domain.tld,rcpt2.domain.tld,rcpt3@domain.tld is not possible. But The BCC address is subject to virtual alias expansion (and aliases(5) expansion for any resulting local recipients). So #/etc/postfix/main.cf #... virtual_alias_maps = hash:/etc/postfix/vmaps #... #/etc/postfix/recipient_bcc_maps source@domain.tld rcpt@domain.tld #/etc/postfix/vmaps rcpt@domain.tld rcpt1@domain.tld,rcpt2.domain.tld,rcpt3@domain.tld