dovecot sieve 遇上转发的邮件自动回复无效的解决

现象: 当邮件是经过转发收到的则sieve的vacation自动回复功能失效,比如在mark@d1.com上做了转发,凡是发往这个地址的邮件都转发到mark@domain.tld上。

 

dovecot lda日志:

lda(mark@domain.tld): Info: sieve: msgid=<131954....@web92414.mail.cnh.yahoo.com>: discarding vacation response for message implicitly delivered to <mark@domain.tld>

 

意思是不能给自己自动回复。搜索结果是信封收件人和信头收件人不一致导致的:

This situation occurs when the message's To,CC,etc. headers do not contain the recipient address (from the envelope). This can be caused by a mailing list (to which it must not respond), but also by some translation in your mail setup. The former case is intended behavior, the latter is problematic. If your final recipient address does not match what is in the message's headers due to some translation step in the mail setup (e.g. aliasing), you have a problem.

http://www.mailinglistarchive.com/html/dovecot@dovecot.org/2011-08/msg00025.html

 

以及

The automatic replies aren't sent if any of the following is true:

Auto-Submitted: header exists with any value except "no"
Precedence: header exists with value "junk", "bulk" or "list"
The envelope sender
begins with "MAILER-DAEMON" (case-insensitive)
begins with "LISTSERV" (case-insensitive)
begins with "majordomo" (case-insensitive)
begins with "owner-" (case-sensitive)
contains the string "-request" anywhere within it (case-sensitive)
The envelope sender and envelope recipient are the same
The envelope recipient is not found in the message To:, Cc: or Bcc: fields.

http://wiki.dovecot.org/LDA/Sieve
  

 

根据上面链接中信息以及参考 man 8 pipe ,修改 postfix的master.cf配置如下:

 

flags=DRhuXO user=vmail:vmail argv=/usr/local/dovecot/libexec/dovecot/dovecot-lda -f ${sender} -d ${user}@${nexthop} -m ${extension} -a ${original_recipient}
 

给dovecot LDA传递 -a参数变量,问题解决。

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值