<br><br><div class="gmail_quote">On Wed, Mar 23, 2011 at 7:15 PM, Barry Kwok <span dir="ltr"><<a href="mailto:hkeasytech@gmail.com">hkeasytech@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div><br></div><div>MTA: postfix 2.3.3<br><div><br></div><div>We are using MailScanner's archive rules to auto forward email.</div><div>e.g </div><div>FromOrTo: <a href="mailto:abc@def.com" target="_blank">abc@def.com</a> <a href="mailto:supervisor@def.com" target="_blank">supervisor@def.com</a></div>
<div><br></div><div>But if someone send an email to <a href="mailto:abc@def.com" target="_blank">abc@def.com</a> and cc to <a href="mailto:supervisor@def.com" target="_blank">supervisor@def.com</a>,</div></div><div><a href="mailto:supervisor@def.com" target="_blank">supervisor@def.com</a> will then get two copies of emails. </div>
<div><br></div><div>Is there any way in Postfix or MailScanner to suppress the duplication.</div><div><br></div><font color="#888888"><div><br></div><div>--barry</div></font></blockquote><div><br></div><div><br></div><div>
<br></div><div>I read a recent discussion in postfix group and found some hints.</div><div><br></div><div><a href="http://tech.groups.yahoo.com/group/postfix-users/message/275247">http://tech.groups.yahoo.com/group/postfix-users/message/275247</a></div>
<div><br></div><div><a href="http://tech.groups.yahoo.com/group/postfix-users/message/275247"></a> By setting enable_original_recipient = no in postfix <a href="http://main.cf">main.cf</a></div><div><br></div><div><a href="http://www.postfix.org/postconf.5.html#enable_original_recipient">http://www.postfix.org/postconf.5.html#enable_original_recipient</a></div>
<div>postfix will do duplicate elimination on the rewritten recipient address. And this will eliminate the duplication such as alias expansion effectively.</div><div><br></div><div>But in my case above, for archive mail forwarding rule, It will only do partly:</div>
<div><br></div><div>For rule</div><div>From: <a href="mailto:abc@def.com">abc@def.com</a> <a href="mailto:supervisor@def.com">supervisor@def.com</a></div><div>It will still work </div><div>But for rule</div><div>
To: <a href="mailto:abc@def.com">abc@def.com</a> <a href="mailto:supervisor@def.com">supervisor@def.com</a></div><div>will not work.</div><div><br></div><div>I think the reason for that is because MailScanner loss the original Envelope-To info after setting enable_original_recipient = no</div>
<div><br></div><div>--barry</div></div><br>