postfix 自动转发邮件

【原文】http://blog.163.com/chunger_qin/blog/static/1332804922010810114636141/

如果公司有员工离职,但是又担心有发给他的重要邮件,需要对postfix做如下配置
比如aa@test.com是要离职的员工,bb@test.com是收到aa 邮件的人

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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值