[pfx] Re: Glitches in smtpd_restriction_classes?

2023-12-10 Thread Wietse Venema via Postfix-users
Juerg Reimann via Postfix-users: > I have to following configuration: > > -- -- > > /etc/postfix/main.cf: > smtpd_recipient_restrictions = > ... > check_recipient_access hash:/etc/postfix/protected_destinations, What is in the ...? Wietse __

[pfx] Re: Glitches in smtpd_restriction_classes?

2023-12-10 Thread Juerg Reimann via Postfix-users
> From: Wietse Venema via Postfix-users > Sent: Sunday, December 10, 2023 1:52 PM > > Juerg Reimann via Postfix-users: > > I have to following configuration: > > > > -- -- > > > > /etc/postfix/main.cf: > > smtpd_recipient_restrictions = > > ... > > check_recipient_access hash

[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

[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 escribió el 10/1

[pfx] Re: Glitches in smtpd_restriction_classes?

2023-12-10 Thread Juerg Reimann via Postfix-users
> From: Noel Jones via Postfix-users > Sent: Sunday, December 10, 2023 2:53 PM > > > But every now and then it does not: > > > > 2023-12-09T14:03:23+01:00 localhost dovecot: [ID 702911 mail.info] > > lmtp(m...@email.addr)<15599>: sieve: > > msgid= > .outlook.com> > > from= size=18499 vsize=18977

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Wietse Venema via Postfix-users
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 milter. This is ok. > Prepended "Received-SPF" header by pypolicyd-spf

[pfx] Re: Logging received from address

2023-12-10 Thread Matus UHLAR - fantomas via Postfix-users
On 09.12.23 13:53, Doug Hardie via Postfix-users wrote: I am using postfix with postsrsd. Is there a way for postfix to log the from address as originally received? The only addresses I find in postfix's log are the converted addresses from postsrsd. Both addresses are logged by postsrsd, bu

[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 milter.

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Scott Kitterman via Postfix-users
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 Delegation >>> This issue is related to headers too. >>> I'm using pypoli

[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 Delegation

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Wietse Venema via Postfix-users
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, since > > it's not just a policy server anymore) also provide a

[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, since it

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Wietse Venema via Postfix-users
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? - If you keep the milter and rmeove the polocy lookup, is eom other header duplicated? Wietse __

[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 dele

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Wietse Venema via Postfix-users
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? >

[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 you

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Jaroslaw Rafa via Postfix-users
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 of parsing Received: headers. > That statement is absolutely false. > Ma

[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 of parsing

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Wietse Venema via Postfix-users
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 cu

[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 P

[pfx] Re: Milter own Postfix-prepended Received

2023-12-10 Thread Wietse Venema via Postfix-users
Wietse: > I asked for a copy of the (headers of the) resulting message that > Postfix delivers. > - Does it have a Received-SPF header? > - Does it have two? Carlos Velasco: > 1. Deleting the header in the milter or doing nothing in the milter > has the same result: final email has only 1 Received

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

2023-12-10 Thread Wietse Venema via Postfix-users
Wietse Venema via Postfix-users: > Wietse: > > I asked for a copy of the (headers of the) resulting message that > > Postfix delivers. > > - Does it have a Received-SPF header? > > - Does it have two? > > Carlos Velasco: > > 1. Deleting the header in the milter or doing nothing in the milter > > h

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

2023-12-10 Thread Wietse Venema via Postfix-users
Patch below. Wietse --- /var/tmp/postfix-3.9-20231210/src/smtpd/smtpd.c 2023-10-12 11:34:40.0 -0400 +++ src/smtpd/smtpd.c 2023-12-10 18:52:56.0 -0500 @@ -3404,13 +3404,6 @@ } /* - * PREPEND message headers above our own Received: header