Thanks for the advice, I'll try to figure it out with amavis when I have time!

--- Исходное сообщение ---
От кого: "Matus UHLAR - fantomas" <uh...@fantomas.sk>
Дата: 15 июня 2021, 13:19:19

On 15.06.21 12:14, yuryb wrote:
>My content filter adds a disclaimer to the email, and then sends it using 
>sendmail:
>/usr/sbin/sendmail -oi "$@" < email_with_disclaimer.$$

I can recommend feeding the mail back using LMTP, using port where 
receive_override_options=no_address_mappings is in use.

Perhaps you could try adding disclaimer with amavis or similar filter that
can do LMTP (and add disclaimers per-recipient).

>But, as I wrote earlier, I completely disabled the content filter, and sent
> emails in different ways.  And I saw that disabling the filter did not
> change anything.  I suspect the problem is with fetchmail, because before
> fetchmail picks up the email, it’s in the mailbox of the email provider,
> and it’s already duplicated!

your provider apparently delivers e-mail to mailbox once per recipient.  
fetchmail should deliver such mail only to recipient in X-Envelope-To:
header or other header your ISP uses for delivering to multidrop mailboxes.

However, yes - if you already receive the same mail multiple times, you only
can try to deduplicate it after that.

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
M$ Win's are shit, do not use it !

Reply via email to