Looks like you edited locl.cf using a dodgy editor that has put CTRL-Is and
CTRL-Ms in there instead of tabs and carriage returns.
Try vi instead.
Owen
> Sure.. The rules I posted in local.cf were from a separate thread the
> other day about logo design firm spam.. here they are:
>
> uri LOC_LOGOSITE /snapshut\.com/i
> describe LOC_LOGOSITE Logo Site
> score LOC_LOGOSITE 0.5
> body LOC_LOGOOBFU /(?!logo)[l1I][o0][gq][o0]/i
> describe LOC_LOGOOBFU Logo Obfuscated
> score LOC_LOGOOBFU 0.5
>
> body __LOGOS /(?:\b[ILl]o[gq]o[s]?\b.*){4}/
> body __BAD_LOGOS /\bIo[gq]o(?:s)?\b/
> body __POOR_QUALITY /gua[lI]ity/
>
> meta SNAPPY_LOGOS (__LOGOS && (__BAD_LOGOS || __POOR_QUALITY))
> describe SNAPPY_LOGOS Get your free logos here! Only $19.95 each!!
> score SNAPPY_LOGOS 5.0
>
> uri SNAPSHUT /www\.snapshut\.info/
> score SNAPSHUT 5.0
> describe SNAPSHUT An open-and-shut case of Spam!
>
>
> here's the errors from debug mode:
>
> May 18 16:39:52 services2 spamd[1838]: debug: Failed to parse line in
> SpamAssassin configuration, skipping: uri LOC_LOGOSITE^I
> ^I/snapshut\.com/i
> May 18 16:39:52 services2 spamd[1838]: debug: Failed to parse line in
> SpamAssassin configuration, skipping: body LOC_LOGOOBFU^
> I^I/(?!logo)[l1I][o0][gq][o0]/i
> May 18 16:39:53 services2 spamd[1838]: debug: Failed to parse line in
> SpamAssassin configuration, skipping: body __LOGOS^I^I^I
> /(?:\b[ILl]o[gq]o[s]?\b.*){4}/
> May 18 16:39:53 services2 spamd[1838]: debug: Failed to parse line in
> SpamAssassin configuration, skipping: body __BAD_LOGOS^I
> ^I/\bIo[gq]o(?:s)?\b/
> May 18 16:39:53 services2 spamd[1838]: debug: Failed to parse line in
> SpamAssassin configuration, skipping: body __POOR_QUALIT
> Y^I^I/gua[lI]ity/
> May 18 16:39:53 services2 spamd[1838]: debug: Failed to parse line in
> SpamAssassin configuration, skipping: meta SNAPPY_LOGOS^
> I^I(__LOGOS && (__BAD_LOGOS || __POOR_QUALITY))
> May 18 16:39:53 services2 spamd[1838]: debug: Failed to parse line in
> SpamAssassin configuration, skipping: uri SNAPSHUT^I
> ^I/www\.snapshut\.info/
> M
>
>
> is there a special format to the rules like "must be tabs", etc?
>
> thanks!
> jamie
>
>
> Chris Santerre wrote:
>
> > Well you can put them in local.cf, or in seperate cf files in the
> > /etc/mail/spamassassin dir.
> >
> > Failed to parse might just mean the rule has syntax errors. Can you post the
> > rule(s) you added?
> >
> > --Chris
> >
> >
> >>-----Original Message-----
> >>From: Jamie Pratt [mailto:[EMAIL PROTECTED]
> >>Sent: Wednesday, May 19, 2004 8:20 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: where to put custom rules?
> >>
> >>
> >>Ok, i cant' seem to figure this out - what file(s) would I put custom
> >>rules into? I tried local.cf and user_prefs, but I get debug errors
> >>(can't parse blah, blah)...
> >>
> >>sorry if this a dumb question, but I just can't seem to figure
> >>out where
> >>I would put them?
> >>
> >>thanks to all as always,
> >>jamie
> >>
> >
> >
> > .
> >
>
> --
>
> Jamie Pratt
> Systems Administrator/Programmer Analyst
> Norwich University Course Development Center
> [EMAIL PROTECTED] | ph. (802)485-2532
>
--
Via Net.Works UK Ltd
Local Touch Global Reach
Owen McShane Systems Administrator
http://www.vianetworks.co.uk Tel +44 (0)1925 484444