Re: header_checks question

2020-04-27 Thread Wietse Venema
Juan Manuel P: > Hello Witse do you mean to use HOLD action on header_checks ? > > like this ? > > /^Subject:.*hacked*/ HOLD By the way that "*" at the end is useless. > And that whats suppose to do ? > > It is holded the email on the queue ? and I can check with mailq command ? > and later

Re: header_checks question

2020-04-27 Thread Matus UHLAR - fantomas
On 27.04.20 13:27, Juan Manuel P wrote: Hello Witse do you mean to use HOLD action on header_checks ? like this ? /^Subject:.*hacked*/ HOLD And that whats suppose to do ? if Wietse's message wasn't enough for you, I recommend looking at http://www.postfix.org/header_checks.5.html It is

Re: header_checks question

2020-04-27 Thread Juan Manuel P
Hello Witse do you mean to use HOLD action on header_checks ? like this ? /^Subject:.*hacked*/ HOLD And that whats suppose to do ? It is holded the email on the queue ? and I can check with mailq command ? and later detele from queue and email me a alert Sorry for ask and not try, because we

Re: header_checks question

2020-04-27 Thread Wietse Venema
jmpatagonia: > Hello I need help to using header_checks, I create a rule > > /^Subject:.*hacked*/ DISCARD An alternative is to use HOLD action, assuming you aren't using software that hijacks the HOLD feature for other purposes, such as mailscanner. Then you can review the email with "postcat

header_checks question

2020-04-27 Thread jmpatagonia
Hello I need help to using header_checks, I create a rule /^Subject:.*hacked*/ DISCARD that work propertly, but a want to know it is posible to email me o to alert me when this rule occur or is aplicated. For some way. Oviusly I see that on the mail.log regards -- Sent from:

Re: header_checks question

2010-02-24 Thread lst_hoe02
Zitat von Victor Duchovni victor.ducho...@morganstanley.com: On Tue, Feb 23, 2010 at 03:47:16PM +0100, Ralf Hildebrandt wrote: So the first one is correct and the second one not?? From: =?iso-8859-1?Q?H=F6fler=2C_Verena?= xx...@x.de To: =?iso-8859-1?Q?=27=22H=F6fler=2C_Martin=22=27?=

Re: header_checks question

2010-02-24 Thread Ralf Hildebrandt
* lst_ho...@kwsoft.de lst_ho...@kwsoft.de: The problem is that on some mails sent from Outlook it is not possible to answer with Thunderbird because the sender address is split into two invalid mailadresses when doing a reply. This only happens when there are special chars in the display name

Re: header_checks question

2010-02-24 Thread lst_hoe02
Zitat von Ralf Hildebrandt ralf.hildebra...@charite.de: * lst_ho...@kwsoft.de lst_ho...@kwsoft.de: The problem is that on some mails sent from Outlook it is not possible to answer with Thunderbird because the sender address is split into two invalid mailadresses when doing a reply. This only

Re: header_checks question

2010-02-24 Thread Wietse Venema
lst_ho...@kwsoft.de: Zitat von Ralf Hildebrandt ralf.hildebra...@charite.de: * lst_ho...@kwsoft.de lst_ho...@kwsoft.de: The problem is that on some mails sent from Outlook it is not possible to answer with Thunderbird because the sender address is split into two invalid mailadresses

Re: header_checks question

2010-02-24 Thread Victor Duchovni
On Wed, Feb 24, 2010 at 11:16:41AM +0100, lst_ho...@kwsoft.de wrote: Same what? Can someone explain the observed issue in some detail? All I am seeing is questions about an ill-advised hypothetical solution. When I put my Cyrillic name into Apple's MUA, the From: header read: From:

Re: header_checks question

2010-02-24 Thread Wietse Venema
lst_ho...@kwsoft.de: There is no wrong To-Header. File a bug-report with Mozilla. That's what i tried to find out: Who is at fault and what is the root-case... If the bug is still present in TB3 i will bother to file a bug. If software X mis-handles a correctly-formatted message header,

Re: header_checks question

2010-02-24 Thread Victor Duchovni
On Wed, Feb 24, 2010 at 04:12:05PM +0100, lst_ho...@kwsoft.de wrote: There is no wrong To-Header. File a bug-report with Mozilla. That's what i tried to find out: Who is at fault and what is the root-case... If the bug is still present in TB3 i will bother to file a bug. I failed to

Re: header_checks question

2010-02-24 Thread lst_hoe02
Zitat von Victor Duchovni victor.ducho...@morganstanley.com: On Wed, Feb 24, 2010 at 04:12:05PM +0100, lst_ho...@kwsoft.de wrote: There is no wrong To-Header. File a bug-report with Mozilla. That's what i tried to find out: Who is at fault and what is the root-case... If the bug is still

Re: header_checks question

2010-02-23 Thread lst_hoe02
Zitat von Victor Duchovni victor.ducho...@morganstanley.com: On Mon, Feb 22, 2010 at 03:54:47PM -0500, Wietse Venema wrote: The rules for display names are in RFC*22. Look for the ABNF for display-name, phrase, word, and atom. Short answer: as long as =?iso-8859-1?Q?stuff?= looks like an

Re: header_checks question

2010-02-23 Thread Ralf Hildebrandt
So the first one is correct and the second one not?? From: =?iso-8859-1?Q?H=F6fler=2C_Verena?= xx...@x.de To: =?iso-8859-1?Q?=27=22H=F6fler=2C_Martin=22=27?= xx...@kwsoft.de This was within one mail from Outlook/Exchange and at least Thunderbird badly chokes on the first one when

Re: header_checks question

2010-02-23 Thread Wietse Venema
lst_ho...@kwsoft.de: Zitat von Victor Duchovni victor.ducho...@morganstanley.com: On Mon, Feb 22, 2010 at 03:54:47PM -0500, Wietse Venema wrote: The rules for display names are in RFC*22. Look for the ABNF for display-name, phrase, word, and atom. Short answer: as long as

Re: header_checks question

2010-02-23 Thread Victor Duchovni
On Tue, Feb 23, 2010 at 03:47:16PM +0100, Ralf Hildebrandt wrote: So the first one is correct and the second one not?? From: =?iso-8859-1?Q?H=F6fler=2C_Verena?= xx...@x.de To: =?iso-8859-1?Q?=27=22H=F6fler=2C_Martin=22=27?= xx...@kwsoft.de This was within one mail from

header_checks question

2010-02-22 Thread Ralf Hildebrandt
Can anybody comment on this ugly fix for Umlauts in realnames? # Already with Quotes (=22) thus do nothing /^From: =\?iso-8859-1\?Q\?=22(.*)=22\?= (.*)$/ REPLACE From: =?iso-8859-1?Q?=22$1=22?= $2 # No quotes /^From: =\?iso-8859-1\?Q\?(.*)\?= (.*)$/ REPLACE From: =?iso-8859-1?Q?=22$1=22?= $2

Re: header_checks question

2010-02-22 Thread lst_hoe02
Zitat von Ralf Hildebrandt ralf.hildebra...@charite.de: Can anybody comment on this ugly fix for Umlauts in realnames? # Already with Quotes (=22) thus do nothing /^From: =?iso-8859-1?Q?=22(.*)=22?= (.*)$/ REPLACE From: =?iso-8859-1?Q?=22$1=22?= $2 # No quotes /^From: =?iso-8859-1?Q?(.*)?=

Re: header_checks question

2010-02-22 Thread Victor Duchovni
On Mon, Feb 22, 2010 at 02:57:54PM +0100, Ralf Hildebrandt wrote: Can anybody comment on this ugly fix for Umlauts in realnames? # Already with Quotes (=22) thus do nothing /^From: =\?iso-8859-1\?Q\?=22(.*)=22\?= (.*)$/ REPLACE From: =?iso-8859-1?Q?=22$1=22?= $2 # No quotes /^From:

Re: header_checks question

2010-02-22 Thread Ralf Hildebrandt
* Victor Duchovni victor.ducho...@morganstanley.com: On Mon, Feb 22, 2010 at 02:57:54PM +0100, Ralf Hildebrandt wrote: Can anybody comment on this ugly fix for Umlauts in realnames? # Already with Quotes (=22) thus do nothing /^From: =\?iso-8859-1\?Q\?=22(.*)=22\?= (.*)$/ REPLACE

Re: header_checks question

2010-02-22 Thread Ralf Hildebrandt
* Wietse Venema wie...@porcupine.org: But Exchange forgets the and just encodes L?stn?me, Firstn?me instead of L?stn?me, Firstn?me thus the quoted-string encapsulation is wrong?! RFC822..RFC5322 do not need quotes around text inside the =?iso-8859-1?Q?stuff?=, as long as there

Re: header_checks question

2010-02-22 Thread Wietse Venema
Ralf Hildebrandt: * Wietse Venema wie...@porcupine.org: But Exchange forgets the and just encodes L?stn?me, Firstn?me instead of L?stn?me, Firstn?me thus the quoted-string encapsulation is wrong?! RFC822..RFC5322 do not need quotes around text inside the

Re: header_checks question

2010-02-22 Thread Victor Duchovni
On Mon, Feb 22, 2010 at 09:26:53PM +0100, Ralf Hildebrandt wrote: if (space or special characters in realname) return encode(add_quotes(realname)) else return realname fi No, if you encode, you don't add quotes, quotes are for ASCII data that contains special characters. For

Re: header_checks question

2010-02-22 Thread Victor Duchovni
On Mon, Feb 22, 2010 at 03:54:47PM -0500, Wietse Venema wrote: The rules for display names are in RFC*22. Look for the ABNF for display-name, phrase, word, and atom. Short answer: as long as =?iso-8859-1?Q?stuff?= looks like an RFC2822 atom, it needs no quoting. And of course, RFC 2047