|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: mouss (mlist.only
free.fr)
Date: Tue Jul 17 2007 - 14:55:51 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Noel Jones wrote:
> At 01:14 PM 7/17/2007, jeff donovan wrote:
>
>> On Jul 17, 2007, at 1:43 PM, Noel Jones wrote:
>>
>>> At 12:29 PM 7/17/2007, MrC wrote:
>>>
>>>
>>>> jeff donovan wrote:
>>>>> greetings
>>>>> many moons ago I added a regex which i must have edited
>>>>> incorrectly, but i don't remember the correct syntax to make this
>>>>> work. -- or is there a better way to write this.
>>>>> header_checks.regexp
>>>>>
>>>>> if /^Received:/
>>>>> /^Received: +from +(mydomain\.org) +/ reject forged client
>>>>> name in Received: header: $1
>>>>> /^Received: +from +[^ ]+ +\(([^ ]+ +[he]+lo=|[he]+lo +)
>>>>> (mydomain\.org)\)/ reject forged client name in Received:
>>>>> header: $2
>>>>> /^Received:.* +by +(mydomain\.org)[[:>:]]/ reject forged
>>>>> mail server name in Received: header: $1
>>>>> endif
>>>>>
>>>>> the error i am getting is;
>>>>> warning: regexp map /etc/postfix/header_checks.regexp, line 6:
>>>>> out of range replacement index "2": skipping this rule
>
> I don't see any obvious problems with your rule. Is this rule all on
> one line in your header_checks file, or is the "header: $2" part on a
> line by itself? What happens if you remove the $2? Does this error
> occur on every mail or just when something matches this rule?
>
>
he only has one "(...)" to use in $x. the other (...) things are either
\(...\) or (...|...). so he should use $1 instead of $2.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]