On 2011-07-05 21:41, Stefan Guenther wrote:
Hello,
we have set "always_bcc = postmappe@localhost" to get a copy of every
incoming and outgoing email.
The problem now is, that we do not only get one copy of every incoming
or outgoing email, but TWO.
There reason for this seems to be the content filter:
content_filter = smtp-amavis:[127.0.0.1]:10024
When I remove this line, I only get one copy.
Can anyone explain why using a content filter creates two copies and
is there a way to avoid the second copy?
Because the content filter re-injects the message over SMTP.
It is a new message as far as postfix is concerned.
Since you set this up, one thinks this would be obvious.
To prevent this from happening, specify
-o receive_override_options=no_address_mappings
as an argument to either: A. the main smtpd(8) listener in master.cf, or
B. the smtpd(8) re-injection listener for your content filter - also in
master.cf.
Be advised that this disables processing of ALL address rewriting in the
affected smtpd(8) daemon, so choose wisely.
Either the main listener does no rewriting, and the content filter sees
the original addresses as received by postfix, or the main listener
rewrites as configured and the content filter sees only rewritten
addresses, thus preventing spam detection on delimited addresses, for
example.
Thanks for any hints and suggestions,
Stefan
--
J.