Simon Horman schrieb: > > On Wed, Dec 02, 2009 at 05:06:06PM +0100, Stefan König wrote: > > > >> >> Hello list, >> >> >> >> I want to use checktype=negotiate with service=simpletcp on spamassassin. >> >> As a request I use "PING SPAMC/1.0" and spamd does reply with "SPAMD/1.4 >> >> 0 PONG" (verified with netcat). >> >> Now I have trouble with the receive regex. I just does not work: >> >> >> >> receive="(\bSPAMD\b.*)" >> >> >> >> I verified the regex on regexplanet >> >> (http://www.regexplanet.com/simple/index.html) and it seems to work fine. >> >> This is troubeling me for hours now. >> >> Could someone give me a hint? >> >> >> > > > > Hi Stefan, > > > > I think that the problem is that you need to escape the \b. > > Could you try receive="(\\bSPAMD\\b.*)" ? > > > > I tested this using the following: > > > > #!/usr/bin/perl > > > > my $test = "SPAMD/1.4 0 PONG"; > > my $re1 = "(\bSPAMD\b.*)"; > > my $re2 = "(\\bSPAMD\\b.*)"; > > > > if ($test =~ m/$re1/) { > > print "1: ok\n"; > > } > > else { > > print "1: fail\n"; > > } > > > > if ($test =~ m/$re2/) { > > print "2: ok\n"; > > } > > else { > > print "2: fail\n"; > > } > > > > > > > > > Hi Simon,
sadly it is also not working :( After the file is reloaded all servers are declared dead after a few seconds. But thanks for the try! It seems the regex is not a 'normal' regex. Maybe someone else has an idea? regards Stefan _______________________________________________ Please read the documentation before posting - it's available at: http://www.linuxvirtualserver.org/ LinuxVirtualServer.org mailing list - [email protected] Send requests to [email protected] or go to http://lists.graemef.net/mailman/listinfo/lvs-users
