Re: RelayCountry Config

2009-08-10 Thread LuKreme
On 7-Aug-2009, at 11:20, Charles Gregory wrote: Okay, so now I'm curious. What *IS* that chunk of code? If you compile it and run it you will see that the putchar() prints out his email address. -- When the routine bites hard / and ambitions are low And the resentment rides high / but emoti

Re: [sa] Re: RelayCountry Config

2009-08-07 Thread Martin Gregorie
On Fri, 2009-08-07 at 13:20 -0400, Charles Gregory wrote: > On Fri, 7 Aug 2009, Karsten Bräckelmann wrote: > >>> char > >>> *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; > >>> main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i >>> c<<=1: > >>> (c=*++x); c&128 && (

Re: [sa] Re: RelayCountry Config

2009-08-07 Thread Charles Gregory
On Fri, 7 Aug 2009, Karsten Bräckelmann wrote: char *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}} How did you get line noise from your modem to look so much like perl co

Re: RelayCountry Config

2009-08-07 Thread Karsten Bräckelmann
> > char > > *t="\10pse\0r\0dtu...@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4"; > > main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i > c<<=1: > > (c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; > > }}} > > How did you get line noise from your modem to loo

Re: RelayCountry Config

2009-08-07 Thread RW
On Fri, 7 Aug 2009 00:46:46 -0400 MySQL Student wrote: > Hi, > > > I find ordinary header and meta rules are all I need: > > > > http://pastebin.com/f5e5232d1 > > Among those rules you have: > > meta RELAYCOUNTRY_MED ! RELAYCOUNTRY_HIGH && ( > __RELAYCOUNTRY_AF || __RELAYCOUNTRY_AS |

Re: RelayCountry Config

2009-08-06 Thread MySQL Student
Hi, > I find ordinary header and meta rules are all I need: > > http://pastebin.com/f5e5232d1 Among those rules you have: meta RELAYCOUNTRY_MED ! RELAYCOUNTRY_HIGH && ( __RELAYCOUNTRY_AF || __RELAYCOUNTRY_AS || __RELAYCOUNTRY_EU_S || __RELAYCOUNTRY_OC_S || __RELAYCOUNTRY_AM_S ) It's p

Re: RelayCountry Config

2009-08-06 Thread Luis Daniel Lucio Quiroz
Le jeudi 6 août 2009 21:55:33, Karsten Bräckelmann a écrit : > > What I don't understand is that it knows which country its relayed > > through, because it prints the rules in the "tests=" section: > > > > X-Spam-Status: Yes, hits=21.8 tag1=-300.0 tag2=4.9 kill=4.9 > > use_bayes=1 tests=BAYES_50,

Re: RelayCountry Config

2009-08-06 Thread MySQL Student
Hi, > This is also why the plugin works and you do get the per-country rule > hits, but don't get the SA Relay-Countries header. Yes, you are correct. Thanks for the lead and the explanation. Here's a thread that talks about how to add the header for amavisd: http://www.mail-archive.com/amavis-u

Re: RelayCountry Config

2009-08-06 Thread Karsten Bräckelmann
> What I don't understand is that it knows which country its relayed > through, because it prints the rules in the "tests=" section: > > X-Spam-Status: Yes, hits=21.8 tag1=-300.0 tag2=4.9 kill=4.9 > use_bayes=1 tests=BAYES_50, BODY_ENHANCEMENT, BOTNET, > FH_HELO_EQ_D_D_D_D, RDNS_NONE, RELAYCOUNT

Re: RelayCountry Config

2009-08-06 Thread MySQL Student
Hi, >> [23760] dbg: metadata: X-Relay-Countries: >> > The --lint test is *NOT* valid for this. --lint is *ONLY* to verify your > config files are parseable. Yes, thanks, I should have known that, and I think I did. I mentioned in the previous post that I tried it with a real message, and even vie

Re: RelayCountry Config

2009-08-06 Thread Matt Kettler
MySQL Student wrote: > Hi, > > >> I don't know if it makes a difference, but I call it Relay-Countries to >> match the name of the pseudo-header used in the tests >> >> add_header all Relay-Countries _RELAYCOUNTRY_ >> > > It doesn't appear to make a difference. I must be doing some

Re: RelayCountry Config

2009-08-06 Thread MySQL Student
Hi, > I don't know if it makes a difference, but I call it Relay-Countries to > match the name of the pseudo-header used in the tests > > add_header all Relay-Countries          _RELAYCOUNTRY_ It doesn't appear to make a difference. I must be doing something else wrong. Using "spamassassin --lint

Re: RelayCountry Config

2009-08-06 Thread Chris
On Thu, 2009-08-06 at 22:34 +0100, RW wrote: > > Somewhat of a basic question, but once I do manage to get that header > > working, I know I can parse that and make decisions based on it. Are > > there any pre-written perl routines or utilities that can make that > > information useful? > > I fin

Re: RelayCountry Config

2009-08-06 Thread RW
On Thu, 6 Aug 2009 16:38:53 -0400 MySQL Student wrote: > add_header all Relay-Country _RELAYCOUNTRY_ > ... > I was hoping to also have the X-Spam-Countries header added, but that > doesn't seem to work. I don't know if it makes a difference, but I call it Relay-Countries to match the name of t