Re: need help with pcre for postfix

2009-11-18 Thread pascal valois
hum, i think i found what was wrong.

when checking with pcre, all lines in the header are processed. and then
the "from: adress" get a REJECT go away reponse from the filter.

i though that all the subject was processed as once ? 

right or wrong ? 

Le mercredi 18 novembre 2009 à 09:17 +0100, pascal valois a écrit :
> Viktor,
> 
> Yes, Milter seems way to much for what i wanna do.
> 
> i installed postfix-pcre on ubuntu 8.04.
> 
> and add this line in my main.cf postfix configuration : 
> 
> header_checks = pcre:/etc/postfix/header_checks
> 
> then here is the content of my /etc/postfix/header_checks :
> 
> !/postmas...@devinci\.fr/ REJECT go away
> 
> but when this is enables, all mail are rejected.
> 
> can anyone help me with this ? 
> 
> 
> Le vendredi 06 novembre 2009 à 14:56 -0500, Victor Duchovni a écrit :
> > On Fri, Nov 06, 2009 at 10:17:26AM +, Sharma, Ashish wrote:
> > 
> > > Pascal,
> > > 
> > > You can create a mail filter for Postfix using Milter API.
> > 
> > Massive overkill for a simple recipient address access policy.
> > 
> 
> 


-- 
Pascal Valois
Service Informatique
Pôle Universitaire Léonard de Vinci



Re: need help with pcre for postfix

2009-11-18 Thread pascal valois
Viktor,

Yes, Milter seems way to much for what i wanna do.

i installed postfix-pcre on ubuntu 8.04.

and add this line in my main.cf postfix configuration : 

header_checks = pcre:/etc/postfix/header_checks

then here is the content of my /etc/postfix/header_checks :

!/postmas...@devinci\.fr/ REJECT go away

but when this is enables, all mail are rejected.

can anyone help me with this ? 


Le vendredi 06 novembre 2009 à 14:56 -0500, Victor Duchovni a écrit :
> On Fri, Nov 06, 2009 at 10:17:26AM +, Sharma, Ashish wrote:
> 
> > Pascal,
> > 
> > You can create a mail filter for Postfix using Milter API.
> 
> Massive overkill for a simple recipient address access policy.
> 


-- 
Pascal Valois
Service Informatique
Pôle Universitaire Léonard de Vinci



need help with pcre for postfix

2009-11-04 Thread pascal valois
hi, 

i don't understand how the filter are processed ? 

can someone help me write a filter who would accept mail for
"postmas...@domain" and reject all other mails ? 

-- 
Pascal Valois
Service Informatique
01 41 16 70 33