Dnia 19.12.2022 o godz. 11:00:38 Yanko Hernández Álvarez pisze: > > The problem is, when I send an email, it delivers two copies to > seccopies@mydomain.example as seen in the logs, not one copy as > expected. [...] > Any idea of how I can fix it?
Bear in mind that when you use a post-queue content filter, *two* delivery cycles are made per each email (before filter and after filter). During each delivery a copy is sent to always_bcc. That's why you get two copies. The best method (although maybe not simplest, in terms of coding) to fix this is to replace after-queue filtering with before-queue filtering, ie. you should change your filter script into a milter. With milters, there will be only one delivery cycle per message. -- Regards, Jaroslaw Rafa r...@rafa.eu.org -- "In a million years, when kids go to school, they're gonna know: once there was a Hushpuppy, and she lived with her daddy in the Bathtub."