【问题标题】:Postfix+Dovecot How do I BCC an email back to the sender?Postfix+Dovecot 如何将电子邮件密件抄送给发件人?
【发布时间】:2022-12-11 14:39:07
【问题描述】:

我试图达到的最终结果是发出的电子邮件也应该进入发件箱。受到其他各种答案的启发,我尝试了多种方法来做到这一点,但到目前为止都没有奏效。

我可以发送和接收电子邮件,但它们永远不会被密件抄送。

相关的配置是这样的:

后缀 master.cf:

submission inet n       -       y       -       -       smtpd
  -o content_filter=smtp-amavis:[127.0.0.1]:10026
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
  -o smtpd_sasl_type=dovecot
  -o smtpd_sasl_path=private/auth
  -o sender_bcc_maps=/etc/postfix/sender_bcc

发件人密件抄送:

person1@example.com person1+sent@example.com

我已经设置了筛子将其过滤到已发送的文件夹中,并且已经确认该部分有效,但为什么没有任何内容被密件抄送?

注意:我也尝试过,always_bcc=person1+sent@example.com,而不是 sender_bcc_maps,但它也不起作用。

【问题讨论】:

    标签: email postfix-mta dovecot sieve bcc


    【解决方案1】:

    我(大部分)已经弄明白了。发生了几件事。

    1. 我必须在 sender_bcc 文件的路径前添加“hash:”。
    2. 我忘记在 sender_bcc 文件上运行 postmap。
    3. 出于某种原因,我不得不将指令移到 main.cf 文件中。

      所有这些都让 BCC'ing 得以发挥作用。我还有其他问题需要解决,但它们并不相关。

    【讨论】:

      猜你喜欢
      • 2019-07-16
      • 2012-03-20
      • 1970-01-01
      • 2012-09-13
      • 1970-01-01
      • 2011-02-01
      • 2013-06-08
      • 2020-10-10
      相关资源
      最近更新 更多