<html style="direction: ltr;">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style id="bidiui-paragraph-margins" type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
</head>
<body bidimailui-charset-is-forced="true" style="direction: ltr;">
<p>On 6/17/22 22:18, Austin Witmer wrote:<br>
</p>
<blockquote type="cite"
cite="mid:3B075670-B68A-4F75-85AF-61551383EE39@emypeople.net">
<pre class="moz-quote-pre" wrap="">For some reason I am now getting five duplicate emails placed in my sent folder</pre>
</blockquote>
<p>Saw your log on the postfix list.</p>
<p>Indeed the message is received again from amavisd via SMTP.</p>
<p style="direction: ltr;">The configuration you have simply says
that every time a message comes in from <a class="moz-txt-link-abbreviated" href="mailto:user@mydomain.com">user@mydomain.com</a>, a copy
should be sent to <a class="moz-txt-link-abbreviated" href="mailto:user+sent@mydomain.com">user+sent@mydomain.com</a>. Since it goes out to
amavisd and in again, the rule is reapplied. You clearly have a
counter somewhere which is stopping this from going on infinitely.</p>
<p style="direction: ltr;">You want to apply this rule only once,
perhaps on the way back in from amavisd. This can probably be
accomplished by applying the sender_bcc_maps to a specific
listener in master.cf, for the general idea see examples here:</p>
<p style="direction: ltr;"><br>
</p>
<p style="direction: ltr;"><a class="moz-txt-link-freetext" href="https://www.postfix.org/ADDRESS_REWRITING_README.html">https://www.postfix.org/ADDRESS_REWRITING_README.html</a></p>
<p style="direction: ltr;"><br>
</p>
</body>
</html>