Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Thread

Regex broken?

Regex broken?

2005-01-25 by Kevin Mitchell

Hiya,

We've been testing the milter-greylist for a while now and found it to be 
excellent.  However we noticed that when we do something like this:

acl greylist rcpt andyb@...

It seems to greylist andyb@... *and* randyb@... (or any 
other user that contains andyb@... in their address).

I've tried this type:

acl greylist rcpt /andyb@.*/

And that still gets randyb@.*

This seems to break greylisting on both andyb@ and all of the randyb@, 
etc.

acl greplist rcpt /^andyb@.*/

(My guess is in this example the ^ is being interpreted as a real 
character not a regex special character.

Any ideas?

Kevin

Re: [milter-greylist] Regex broken?

2005-01-26 by manu@netbsd.org

Kevin Mitchell <kevin@...> wrote:

> acl greplist rcpt /^andyb@.*/

This should work. I use it at mine. Does it match andyb, randyb, both or
none?

-- 
Emmanuel Dreyfus
http://hcpnet.free.fr/pubz
manu@...

Re: Regex broken?

2005-02-10 by marlin099

--- In milter-greylist@yahoogroups.com, manu@n... wrote:
> Kevin Mitchell <kevin@g...> wrote:
> 
> > acl greplist rcpt /^andyb@*/
> 
> This should work. I use it at mine. Does it match andyb, randyb, both or
> none?
> 

I also work  with this system. I'm actually the andyb that he is
talking about. 

When we put the ^ symbol in, it doesn't match anything. 

-Andy

Re: [milter-greylist] Re: Regex broken?

2005-02-10 by manu@netbsd.org

marlin099 <marlin099@...> wrote:

> > > acl greplist rcpt /^andyb@*/
> > 
> > This should work. I use it at mine. Does it match andyb, randyb, both or
> > none?
> > 
> 
> I also work  with this system. I'm actually the andyb that he is
> talking about. 
> 
> When we put the ^ symbol in, it doesn't match anything.

Err... I realise it's not good, after all:
/^andyb@.*/ might be better

-- 
Emmanuel Dreyfus
Le cahier de l'admin BSD 2eme ed. est dans toutes les bonnes librairies
http://www.eyrolles.com/Informatique/Livre/9782212114638/livre-bsd.php
manu@...

Re: Regex broken?

2005-02-10 by marlin099

--- In milter-greylist@yahoogroups.com, manu@n... wrote:
> marlin099 <marlin099@y...> wrote:
> 
> > > > acl greplist rcpt /^andyb@*/
> > > 
> > > This should work. I use it at mine. Does it match andyb, randyb,
both or
> > > none?
> > > 
> > 
> > I also work  with this system. I'm actually the andyb that he is
> > talking about. 
> > 
> > When we put the ^ symbol in, it doesn't match anything.
> 
> Err... I realise it's not good, after all:
> /^andyb@*/ might be better
> 
I think that was a typo, we did actually mean /^andyb@.*/

-Andy

Re: Regex broken?

2005-03-01 by marlin099

--- In milter-greylist@yahoogroups.com, "marlin099" <marlin099@y...>
wrote:
> 
> --- In milter-greylist@yahoogroups.com, manu@n... wrote:
> > marlin099 <marlin099@y...> wrote:
> > 
> > > > > acl greplist rcpt /^andyb@*/
> > > > 
> > > > This should work. I use it at mine. Does it match andyb, randyb,
> both or
> > > > none?
> > > > 
> > > 
> > > I also work  with this system. I'm actually the andyb that he is
> > > talking about. 
> > > 
> > > When we put the ^ symbol in, it doesn't match anything.
> > 
> > Err... I realise it's not good, after all:
> > /^andyb@*/ might be better
> > 
> I think that was a typo, we did actually mean /^andyb@*/
> 
> -Andy

I think I figured this one out. /<andyb@.*>/ will match andyb@
anything, but not randyb@.* The string that these regex are trying to
match to has the <>'s with them, coming from sendmail. 

-Andy

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.