On 2010-11-09 15:37:33 +0100, Louis-David Mitterrand wrote: > On Tue, Jul 20, 2010 at 12:29:09PM -0400, Victor Duchovni wrote: > > On Tue, Jul 20, 2010 at 10:14:01AM +0200, Louis-David Mitterrand wrote: > > > > > I can't seem to get postfix to match that header: > > > > > > Subject: > > > =?UTF-8?Q?Vos_Factures_arrivant_a_=C3=A9ch=C3=A9ance_-_FR0905249?= > > > > > > with this /etc/postfix/header_check entry (PCRE): > > > > > > /^(Subject: > > > =\?UTF-8\?Q\?Vos_Factures_arrivant_a_=C3=A9ch=C3=A9ance_-_FR0905249\?=)/ > > > REJECT > > > > > > yet a: > > > > > > postmap -q 'Subject: > > > =?UTF-8?Q?Vos_Factures_arrivant_a_=C3=A9ch=C3=A9ance_-_FR0905249?=' > > > /etc/postfix/header_check > > > > > > does match. > > > > The subject probably gets RFC2049 (re-)encoded by an MTA between your > > Postfix server and mailbox server. You need to record the original > > Subject, perhaps by putting the message on HOLD or otherwise capturing > > a copy before delivery to other MTAs. > > The original subject is: > > Nov 9 13:18:16 zenon postfix/cleanup[11310]: 3384E42508017: warning: header > Sub > ject: =?UTF-8?Q?Vos_Factures_arrivant_a_=C3=A9ch=C3=A9ance_-_FR0905249?= from > .. > > and there is no other postfix involved.
Does the log give the real subject, I mean when there are control and other special characters (possibly not visible)? If you did copy-paste from a terminal, that could be bad. For instance, sometimes "Subject:" is followed by a tab character, not by a space. This could be an explanation to your problem. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)