首页 运维 正文
Postfix邮件的备份方法

 2022-10-23    470  

  postfix 邮件备份方法:

  postfix的bcc(密送)功能可以根据条件,将所有经过postfix队列的邮件根据规则密送到指定的邮箱。

Postfix邮件的备份方法

  postfix带有三个bcc参数:

  ①、always_bcc:将所有的postfix 邮件都备份到指定邮箱;

  ②、sender_bcc_maps:将收件人包含在map文件中的postfix 邮件被分到指定邮箱;

  ③、recipient_bcc_maps:将收件人包含在map文件中的postfix 邮件被分到指定邮箱。

  1、recipient_bcc_maps和sender_bcc_maps的postfix使用

  # vi /etc/postfix/main.cf #增加下面两行

  recipient_bcc_maps = hash:/etc/postfix/recipient_bcc

  sender_bcc_maps = hash:/etc/postfix/sender_bcc

  # cat sender_bcc

  sender@test.com backup@test.com

  # cat recipient_bcc

  recipient@test.com backup@test.com

  #postmap /etc/postfix/sender_bcc

  #postmap /etc/postfix/recipient_bcc

  #/etc/init.d/postfix reload

  2、always_bcc的postfix 使用方法

  # vi /etc/postfix/main.cf #增加下面一行

  always_bcc = backup@test.com

  #/etc/init.d/postfix reload

  注意:如果bbc被弹回,postfix 邮件退信将被退回到发件人。

原文链接:https://77isp.com/post/9016.html

=========================================

https://77isp.com/ 为 “云服务器技术网” 唯一官方服务平台,请勿相信其他任何渠道。