[pfx] Re: spf and Permerror

2024-06-27 Thread Carlos Velasco via Postfix-users
natan via Postfix-users escribió el 27/06/2024 a las 15:48: W dniu 27.06.2024 o 15:39, Scott Kitterman via Postfix-users pisze: Hi Scott Jun 27 15:39:06 MX policyd-spf[3729]: prepend Received-SPF: Permerror (mailfrom) identity=mailfrom; client-ip=200.28.23.150; helo=200-28-23-150.baf.movistar.cl

[pfx] Re: Postfix Milter, the gift that keeps on giving (was: PATCH: using Milter to change a PREPENDed header)

2023-12-13 Thread Carlos Velasco via Postfix-users
Wietse Venema via Postfix-users escribió el 13/12/2023 a las 1:59: Carlos Velasco via Postfix-users: Thus, the Postfix code that handles header update/delete requests was still naively skipping the first header, making calls to delete the prepended Received-SPF: header ineffective, and mis

[pfx] Re: Postfix Milter, the gift that keeps on giving (was: PATCH: using Milter to change a PREPENDed header)

2023-12-11 Thread Carlos Velasco via Postfix-users
Wietse Venema via Postfix-users escribió el 11/12/2023 a las 22:30: Wietse Venema: Patch below. Carlos Velasco: Tested patch against 3.8.3, now it works as expected. Thank you. No duplicated "Received-SPF" and *removing "Received" in position 1 is now not the own generated, is really the firs

[pfx] Re: Milter own Postfix-prepended Received

2023-12-11 Thread Carlos Velasco via Postfix-users
Bill Cole via Postfix-users escribió el 11/12/2023 a las 15:31: On 2023-12-10 at 16:37:16 UTC-0500 (Sun, 10 Dec 2023 22:37:16 +0100) Carlos Velasco via Postfix-users is rumored to have said: [...] And doing the same work in 2 different places can be called software efficiency? No, but the

[pfx] Re: PATCH: using Milter to change a PREPENDed header

2023-12-11 Thread Carlos Velasco via Postfix-users
Wietse Venema via Postfix-users escribió el 11/12/2023 a las 1:11: Patch below. Tested patch against 3.8.3, now it works as expected. Thank you. No duplicated "Received-SPF" and removing "Received" in position 1 is now not the own generated, is really the first one Received seen in the milter.

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Carlos Velasco via Postfix-users
Wietse Venema via Postfix-users escribió el 10/12/2023 a las 22:54: Carlos Velasco via Postfix-users: Wietse Venema via Postfix-users escribi? el 10/12/2023 a las 21:53: Carlos Velasco via Postfix-users: Wietse Venema via Postfix-users escribi? el 10/12/2023 a las 19:44: Carlos Velasco via

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Carlos Velasco via Postfix-users
Jaroslaw Rafa via Postfix-users escribió el 10/12/2023 a las 22:32: Dnia 10.12.2023 o godz. 22:16:27 Carlos Velasco via Postfix-users pisze: That is because every Milter in the real world gets the client info >from the smfi_connect() callback function and from Milter macros, instead

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Carlos Velasco via Postfix-users
Wietse Venema via Postfix-users escribió el 10/12/2023 a las 21:53: Carlos Velasco via Postfix-users: Wietse Venema via Postfix-users escribi? el 10/12/2023 a las 19:44: Carlos Velasco via Postfix-users: *** And there is the milter, is custom made *** You need to reduce complexity. - If

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Carlos Velasco via Postfix-users
Wietse Venema via Postfix-users escribió el 10/12/2023 a las 19:44: Carlos Velasco via Postfix-users: *** And there is the milter, is custom made *** You need to reduce complexity. - If you remove the Milter, is the header still duplicated? No. Duplication only happens when, in milter, I

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Carlos Velasco via Postfix-users
Wietse Venema via Postfix-users escribió el 10/12/2023 a las 18:49: Carlos Velasco via Postfix-users: That means you are somehow calling the policy server twice. You didn't mention what version of the SPF policy server you are using. Recent versions (under the project name SPF Engine,

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Carlos Velasco via Postfix-users
Scott Kitterman via Postfix-users escribió el 10/12/2023 a las 18:09: On December 10, 2023 3:54:13 PM UTC, Carlos Velasco via Postfix-users wrote: Wietse Venema via Postfix-users escribió el 10/12/2023 a las 15:53: Carlos Velasco via Postfix-users: 2. Duplicated SMTP Access Policy

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Carlos Velasco via Postfix-users
Wietse Venema via Postfix-users escribió el 10/12/2023 a las 15:53: Carlos Velasco via Postfix-users: 2. Duplicated SMTP Access Policy Delegation This issue is related to headers too. I'm using pypolicyd-spf as policy daemon to check SPF. It is working fine. The execution happens before m

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Carlos Velasco via Postfix-users
Hi, Things have gotten stranger for case 1. If milter "chgheader" is used, the Index 1 is the hidden (prepended) header of postfix. So, you must start in index = 2 to delete the first header received in header callback. Regards, Carlos Velasco Carlos Velasco via Postfix-users escr

[pfx] Milter own Postfix-prepended Received

2023-12-10 Thread Carlos Velasco via Postfix-users
Hello, I'm migrating a postfix server from "Before-Queue Content Filter" to "before-queue Milter". Postfix version is 3.8.3 The process is going well but I have found 2 weird things: 1. Postfix hides its own Postfix-prepended Received: header, for compatibility with Sendmail. This was unexpect