[pfx] Re: MySQL access maps returns newline at the end

2025-06-29 Thread Jorge Bastos via Postfix-users
Hi Wietse,Benny and others, I managed to fix the issue looking at my conf, Thanks all, it was very helpful to get there. I have another issue with smtputf8 that i'll start in another email, On 2025-06-25 17:18, Wietse Venema via Postfix-users wrote: JorgeBastos: root@fastmail:~# postconf

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Jorge Bastos via Postfix-users
tux ~ # postconf -nf | grep smtpd_ Please do not 'grep' the 'postconf -f' output. It shows only the firest line of each setting/ Please DO show the output thst I asked for: postconf -f smtpd_{client,helo,sender,recipient,relay,data,end_of_data}_restrictions root@fastmail:~# postconf -f smt

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Benny Pedersen via Postfix-users
Jorge Bastos skrev den 2025-06-25 17:07: I think my main issue is that PERMIT still continues evaluation and i'm thinking that it stops when it doesn't. So no way to have a PERMIT that stops evaluation right? only the negative options stop evaluation the next ones? show logs and postconf -Mf

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Jorge Bastos via Postfix-users
Wietse, On 2025-06-25 16:54, Wietse Venema via Postfix-users wrote: WI sent you the outlook in the previous email, What you sent was this: No error, it just get's rejected by one of the rbl's, because it didn't stop checking on the: You have an smtpd_client_restriction rule that replies with

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Jorge Bastos via Postfix-users
Benny What happens is, in the "check_client_access mysql:/etc/postfix/mysql-client-ip-access.cf" when it returns the PERMIT it should check the next statment, but it is checking, postfix have always being first match wins, so later restrictions is not checked after permit split maps to cont

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Jorge Bastos via Postfix-users
Benny, I think my main issue is that PERMIT still continues evaluation and i'm thinking that it stops when it doesn't. So no way to have a PERMIT that stops evaluation right? only the negative options stop evaluation the next ones? * DUNNO → continues evaluation * PERMIT → c

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Wietse Venema via Postfix-users
JorgeBastos: >root@fastmail:~# postconf -f > smtpd_{client,helo,sender,recipient,relay,data,end_of_data}_restrictions > smtpd_client_restrictions = permit_mynetworks, check_client_access >mysql:/etc/postfix/mysql-client-ip-access.cf, permit_sasl_authenticated, >reject_unknown_rever

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Jorge Bastos via Postfix-users
Hi Wietse, info below. What happens is, in the "check_client_access mysql:/etc/postfix/mysql-client-ip-access.cf" when it returns the PERMIT it should check the next statment, but it is checking, smtpd_client_restrictions = permit_mynetworks, check_client_access mysql:/etc/postfix/mysql-cli

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Wietse Venema via Postfix-users
Wietse: > Good. Now, what is the complete 'reject' message from Postfix? > I am asking for Postfix output, not for your opinion. Jorge Bastos via Postfix-users: > Wietse, > > I sent you the outlook in the previous email, What you sent was this: No error, it just get's rejected by one of the

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Benny Pedersen via Postfix-users
Jorge Bastos via Postfix-users skrev den 2025-06-25 18:07: here it is again, where is logs ? no logs no problem ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Jorge Bastos via Postfix-users
Wietse, I sent you the outlook in the previous email, On 2025-06-25 16:36, Wietse Venema via Postfix-users wrote: Good. Now, what is the complete 'reject' message from Postfix? I am asking for Postfix output, not for your opinion. Wietse ___ Postfi

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Wietse Venema via Postfix-users
Good. Now, what is the complete 'reject' message from Postfix? I am asking for Postfix output, not for your opinion. Wietse ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.o

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Jorge Bastos via Postfix-users
Wait Be show logs and postconf -Mf postconf -nf without anything i cant help more ___ I think what I need and what i have to do is some kind of reverse logic for the PERMIT - Have the whitelist's in a script, and when a match is found, return RE

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Wietse Venema via Postfix-users
Jorge Bastos via Postfix-users: > Benny, > > I think my main issue is that PERMIT still continues evaluation and i'm > thinking that it stops when it doesn't. > So no way to have a PERMIT that stops evaluation right? only the > negative options stop evaluation the next ones? > > * > > DU

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Benny Pedersen via Postfix-users
Jorge Bastos skrev den 2025-06-25 16:14: quote: postconf smtpd_{client,helo,sender,recipient,relay,data,end_of_data}_restrictions your setup miss permit in helo,sender,recipient,relay,data,end_of_date, so its only permit currently in client restrictions you will possible move all this into

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Jorge Bastos via Postfix-users
Benny, On 2025-06-25 15:06, Benny Pedersen via Postfix-users wrote: quote: postconf smtpd_{client,helo,sender,recipient,relay,data,end_of_data}_restrictions your setup miss permit in helo,sender,recipient,relay,data,end_of_date, so its only permit currently in client restrictions you wil

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Benny Pedersen via Postfix-users
Jorge Bastos skrev den 2025-06-25 15:58: What happens is, in the "check_client_access mysql:/etc/postfix/mysql-client-ip-access.cf" when it returns the PERMIT it should check the next statment, but it is checking, postfix have always being first match wins, so later restrictions is not checked

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Benny Pedersen via Postfix-users
Jorge Bastos via Postfix-users skrev den 2025-06-25 15:39: What happens is, in the "check_client_access mysql:/etc/postfix/mysql-client-ip-access.cf" when it returns the PERMIT it should check the next statment, but it is checking, postfix have always being first match wins, so later restricti

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Jorge Bastos via Postfix-users
No error, it just get's rejected by one of the rbl's, because it didn't stop checking on the: check_client_access mysql:/etc/postfix/mysql-client-ip-access.cf On 2025-06-25 14:44, Wietse Venema via Postfix-users wrote: What is the complete error message? Wietse __

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Wietse Venema via Postfix-users
What is the complete error message? Wietse ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Wietse Venema via Postfix-users
Wietse Venema via Postfix-users: > Jorge Bastos via Postfix-users: > > root@fastmail:/etc/postfix# postmap -q 188.250.172.222 > > mysql:/etc/postfix/mysql-client-ip-access.cf | hexdump -C > > 50 45 52 4d 49 54 0a |PERMIT.| > > 0007 > > root@fastmail:/etc/postfix# > > That newline is

[pfx] Re: MySQL access maps returns newline at the end

2025-06-25 Thread Wietse Venema via Postfix-users
Jorge Bastos via Postfix-users: > root@fastmail:/etc/postfix# postmap -q 188.250.172.222 > mysql:/etc/postfix/mysql-client-ip-access.cf | hexdump -C > 50 45 52 4d 49 54 0a |PERMIT.| > 0007 > root@fastmail:/etc/postfix# That newline is not in your database. The *postmap* command appe