You haven't posted whole master nor whole xMTPDeliver (pastebin, please).
Both can contain something that causes multiple deliveries.

On 18.08.17 09:38, Søren Peter Skou wrote:
Pastebin coming up 😊
main.cf : https://pastebin.com/rQTFc50q
master.cf : https://pastebin.com/zfpG2sBB
xMTPDeliver: https://pastebin.com/GrUPuDgJ

I've come to the conclusion that the culprit lies in the "Not local" part
of xMTPDeliver.  Once it ships is off using sendmail (postfix) -oi, it is
re-entered back into the queue, and Postfix sees the address once more,
and delivers locally, since the a...@a.test resolves to both b...@a.test and
c...@b.test.

[....]
I believe you should only send local mail to dovecot (not all via
content_filter), you seem to pass everything to is which apparently caused
your problem.

All incoming mail needs to be scanned for Vira/Malware, is why I pass it
to a content_filter, 127.0.0.1:10025 has clamsmtp running.  Clamsmtp
returns on port 10026 if clean.In master.cf 10026 is then defined with a
content_filter=spamassassin.  This calls xMTPDeliver which handles the
spamc calls.

I see it simple: stop sing content_filter for mail delivery. It is not
designed to do that.
configure the content_filter to push mail back to queue and use postfix to
decide when to forward and when to deliver the mail locally.

--
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.
"They say when you play that M$ CD backward you can hear satanic messages."
"That's nothing. If you play it forward it will install Windows."

Reply via email to