Re: encoding issue with header_checks Windows-1252

2019-07-20 Thread Wietse Venema
Stefan Bauer: > So you are saying that the client probably decoded the subject. I am saying that the subject differs from what you have. There can be any number of reasons including encoding, and incuding the possibility that someone gave you text that was not part of the message. Wietse

Re: encoding issue with header_checks Windows-1252

2019-07-20 Thread Stefan Bauer
So you are saying that the client probably decoded the subject. Thank you Wietse! What might be the best way, to capture all kind of encodings for a specific string in subject? We let our users choose mail routing path, if string is part of subject. Works with all clients, just not with some kind

Re: encoding issue with header_checks Windows-1252

2019-07-20 Thread Wietse Venema
Stefan Bauer: > I dont get it. Testing the above correctly shows > > Subject: > =?Windows-1252?Q?[Cleartext]_Webinar_=84Noch_keine_55_und_ab_in_die_GKV=93?= > FILTER cleartext: > > But the e-mail itself was not passed to the FILTER cleartext. Consider the possibiliy that the message subject is

Re: encoding issue with header_checks Windows-1252

2019-07-18 Thread Stefan Bauer
I dont get it. Testing the above correctly shows Subject: =?Windows-1252?Q?[Cleartext]_Webinar_=84Noch_keine_55_und_ab_in_die_GKV=93?= FILTER cleartext: But the e-mail itself was not passed to the FILTER cleartext. Above subject was extracted from mail client. I believe, there is something going

Re: encoding issue with header_checks Windows-1252

2019-07-18 Thread Wietse Venema
Stefan Bauer: > Hi, > > header_checks = regexp:/etc/postfix/headerstring > /^Subject: .*\[cleartext\].*/ FILTER cleartext: > > And now, there is the following mail-Subject, that did not trigger the > above FILTER and i dont see why: > > Subject: > =?Windows-1252?Q?[Cleartext]_Webinar_=84Noch_kei

Re: encoding issue with header_checks Windows-1252

2019-07-18 Thread Stefan Bauer
only this single filter is present - no other filters. Unfortunately thats not enough to trigger the filter. Am Do., 18. Juli 2019 um 14:00 Uhr schrieb pasvon : > What does the complete file /etc/postfix/headerstring look like? > Does another line match a filter action and override the desired r

Re: encoding issue with header_checks Windows-1252

2019-07-18 Thread Matus UHLAR - fantomas
On 18.07.19 13:42, Stefan Bauer wrote: man 5 header_checks By default, regexp : and pcre : patterns are case *insensitive*. sorry, misread. Should be more careful.. Am Do., 18. Juli 2019 um 13:40 Uhr

Re: encoding issue with header_checks Windows-1252

2019-07-18 Thread pasvon
What does the complete file /etc/postfix/headerstring look like? Does another line match a filter action and override the desired result? Have you defined any other header_checks (body for example)? That should be enough, too: /^Subject: .*\[cleartext\]/ FILTER cleartext: -- Sent from: http://p

Re: encoding issue with header_checks Windows-1252

2019-07-18 Thread Stefan Bauer
man 5 header_checks By default, regexp : and pcre : patterns are case *insensitive*. Am Do., 18. Juli 2019 um 13:40 Uhr schrieb Matus UHLAR - fantomas < uh...@fantomas.sk>: > On 18.07.19 13:35, Stefan B

Re: encoding issue with header_checks Windows-1252

2019-07-18 Thread Matus UHLAR - fantomas
On 18.07.19 13:35, Stefan Bauer wrote: header_checks = regexp:/etc/postfix/headerstring /^Subject: .*\[cleartext\].*/ FILTER cleartext: And now, there is the following mail-Subject, that did not trigger the above FILTER and i dont see why: Subject: =?Windows-1252?Q?[Cleartext]_Webinar_=84Noch_k

encoding issue with header_checks Windows-1252

2019-07-18 Thread Stefan Bauer
Hi, header_checks = regexp:/etc/postfix/headerstring /^Subject: .*\[cleartext\].*/ FILTER cleartext: And now, there is the following mail-Subject, that did not trigger the above FILTER and i dont see why: Subject: =?Windows-1252?Q?[Cleartext]_Webinar_=84Noch_keine_55_und_ab_in_die_GKV=93?= Any

Re: Issue with header_checks

2011-02-14 Thread mouss
Le 14/02/2011 22:22, mouss a écrit : > >> # MAL FORMATED EMAIL ADDRESS >> >> /^From:.*\.@.*/ REJECT "1 - Your Email address is not compliant with >> RFC, Go Away" >> >> /^From:.*<.*\.\..*@.*>/ REJECT "2 - Your Email address is not compliant with >> RFC, Go Away" >> > > > > you can probab

Re: Issue with header_checks

2011-02-14 Thread mouss
t; De : Franck MAHE [mailto:m...@civis.net] > Envoyé : dimanche 13 février 2011 22:33 > À : 'postfix-users@postfix.org' > Objet : Issue with header_checks > > > > Hello, > > > > I’ve the following in main.cf > > header_checks = regexp:/etc/pos

RE: Issue with header_checks

2011-02-14 Thread Franck MAHE
x.org Objet : Re: Issue with header_checks On 02/14/2011 02:15 AM, Victor Duchovni wrote: > On Mon, Feb 14, 2011 at 01:45:28AM +0100, Jeroen Geilman wrote: > > >>> Any idea for the REJECT 4 to reject the header "From: us e...@domain.tld >>> <m

Re: Issue with header_checks

2011-02-13 Thread Jeroen Geilman
On 02/14/2011 02:15 AM, Victor Duchovni wrote: On Mon, Feb 14, 2011 at 01:45:28AM +0100, Jeroen Geilman wrote: Any idea for the REJECT 4 to reject the header "From: us e...@domain.tld ", ie with a space in the first part. The example I showed you, while bein

Re: Issue with header_checks

2011-02-13 Thread Victor Duchovni
On Mon, Feb 14, 2011 at 01:45:28AM +0100, Jeroen Geilman wrote: >> Any idea for the REJECT 4 to reject the header "From: us e...@domain.tld >> ", ie with a space in the first part. > > The example I showed you, while being much more readable, already included > the space.

Re: Issue with header_checks

2011-02-13 Thread Noel Jones
On 2/13/2011 6:37 PM, Franck MAHE wrote: OK, so this configuration seems to work fine. /^From:.*<.*(\[|\]|\(|\)|\`|\;|\,|\^|\#|\:|\||\\|\@|<|>|\/|\!|\ |\$|"|"|\%|\&|').*@.*>/ REJECT "3 - Your Email address is not compliant with RFC, Go Away" if !/^From:.*<.*@.*>/ /^From:.*([|]|\(|\)|`|;|,|^|#

Re: Issue with header_checks

2011-02-13 Thread Jeroen Geilman
On 02/14/2011 01:37 AM, Franck MAHE wrote: OK, so this configuration seems to work fine. /^From:.*<.*(\[|\]|\(|\)|\`|\;|\,|\^|\#|\:|\||\\|\@|<|>|\/|\!|\ |\$|"|"|\%|\&|').*@.*>/ REJECT "3 - Your Email address is not compliant with RFC, Go Away" if !/^From:.*<.*@.*>/ /^From:.*([|]|\(|\)|`|;|

RE: Issue with header_checks

2011-02-13 Thread Franck MAHE
.net De : owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] De la part de Jeroen Geilman Envoyé : lundi 14 février 2011 00:44 À : postfix-users@postfix.org Objet : Re: Issue with header_checks On 02/14/2011 12:37 AM, Franck MAHE wrote: I did the test on the From he

Re: Issue with header_checks

2011-02-13 Thread Jeroen Geilman
.org] *De la part de* Jeroen Geilman *Envoyé :* lundi 14 février 2011 00:16 *À :* postfix-users@postfix.org *Objet :* Re: Issue with header_checks On 02/14/2011 12:13 AM, Franck MAHE wrote: Hi, OK, but the REJECT 3 works fine, so I think it is an issue with the if, but I don't see why.

RE: Issue with header_checks

2011-02-13 Thread Franck MAHE
<mailto:m...@civis.net> m...@civis.net De : owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] De la part de Jeroen Geilman Envoyé : lundi 14 février 2011 00:16 À : postfix-users@postfix.org Objet : Re: Issue with header_checks On 02/14/2011 12:13 AM, Franck MAHE wrote: Hi,

Re: Issue with header_checks

2011-02-13 Thread Jeroen Geilman
3 6 6042 7249 E: m...@civis.net <mailto:m...@civis.net> *De :* owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] *De la part de* Jeroen Geilman *Envoyé :* dimanche 13 février 2011 23:49 *À :* postfix-users@postfix.org *Objet :* Re: Issue with header_checks On 02/13/

RE: Issue with header_checks

2011-02-13 Thread Franck MAHE
Geilman Envoyé : dimanche 13 février 2011 23:49 À : postfix-users@postfix.org Objet : Re: Issue with header_checks On 02/13/2011 10:33 PM, Franck MAHE wrote: Hello, I’ve the following in main.cf header_checks = regexp:/etc/postfix/regexp_table My postfix release is 2.3.8 I’ve the

Re: Issue with header_checks

2011-02-13 Thread Jeroen Geilman
On 02/13/2011 10:33 PM, Franck MAHE wrote: Hello, I've the following in main.cf header_checks = regexp:/etc/postfix/regexp_table My postfix release is 2.3.8 I've the following in my header_checks regex table: # MAL FORMATED EMAIL ADDRESS /^From:.*\.@.*/ REJECT "1 - Your Email addre

RE: Issue with header_checks

2011-02-13 Thread Franck MAHE
stfix-users@postfix.org' Objet : Issue with header_checks Hello, I’ve the following in main.cf header_checks = regexp:/etc/postfix/regexp_table My postfix release is 2.3.8 I’ve the following in my header_checks regex table: # MAL FORMATED EMAIL ADDRESS /^From:.*\.@.*/ REJECT

Issue with header_checks

2011-02-13 Thread Franck MAHE
Hello, I've the following in main.cf header_checks = regexp:/etc/postfix/regexp_table My postfix release is 2.3.8 I've the following in my header_checks regex table: # MAL FORMATED EMAIL ADDRESS /^From:.*\.@.*/ REJECT "1 - Your Email address is not compliant with RFC, Go Away