You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Andreas Rehmer <re...@teltarif.de> on 2009/09/23 14:29:05 UTC

After moving mailserver to another box three rules dont work

Hi out there,

as described in the Subject my Problem is the following:

I moved my Mailserver (inclusiv spamassassin) to a new machine.
From an old and slow i386 Server to an brand new x86_64 machine.
On both boxes run CentOS 5.3 (up to date) and on both
run spamassassin 3.2.5 only the arch is differnt. Spamassassin is invoked 
by amavis. After setting up the machine and starting amavisd i got the 
following Error:

Sep 22 15:17:17 web14 amavis[21065]: SA info: config: failed to parse line, skipping, in "/etc/mail/spamassassin/teltarifregeln.cf": rawbodyfull __MORTGAGE1 /current mortgage.* lowest rates.* loan .* monthly.*pmt /is

Sep 22 15:17:17 web14 amavis[21065]: SA info: config: failed to parse line, skipping, in "/etc/mail/spamassassin/teltarifregeln.cf": rawbodyfull X_SPAMIMGTAG /(<p>|<FONT (face=[^<> ]* )?size=[^<> ]*>|<DIV>)(<[aA] href="[^"]*">)?<IMG[\\s\\r\\n=20]+alt="[^"]*"[\\s\\r\\n=20]+hspace=0[\\s\\r\\n=20]+src="[^"]*"[\\s\\r\\n=20]+align=[\\s\\r\\n=20]*baseline=?[\\s\\r\\n=20]+border=0>(<\\/[aA]>)?(<\\/p>|<\\/FONT>|<\\/DIV>)/s

Sep 22 15:17:17 web14 amavis[21065]: SA info: config: failed to parse line, skipping, in "/etc/mail/spamassassin/teltarifregeln.cf": rawbodyfull X_SMALLFONTLONGTEXT /<FONT\\s+(FACE="[^"]*"\\s)?size="?1"?>(<br>|<p>|<\\/p>|[^<>]|\\r|\\n){160}/is

but all this rules worked fine on the old machine. Any sugestions?

Mit freundlichen Grüßen

Andreas Rehmer - IT
--------------
Tel.: 030/453081-506




teltarif.de Onlineverlag GmbH
Alt-Moabit 96c, 10559 Berlin
Tel:  +49 (0)30 453 081-0
Fax:  +49 (0)30 453 081-11
Mail: mailto:info@teltarif.de
WWW:  http://www.teltarif.de

Geschäftsführer: Kai Petzke, Martin Müller
eingetragen beim Amtsgericht Berlin-Charlottenburg, HRB 70507
Umsatzsteuer-ID: DE201038407

Sie wollen auch unterwegs im Bereich Telekommunikation informiert sein?
http://mobil.teltarif.de bringt die gewohnten Informationen auf Ihr Handy.


Re: After moving mailserver to another box three rules dont work

Posted by Andreas Rehmer <re...@teltarif.de>.
Hi there,

sorry i forgot to aply a privat-patch that enable this test. Thank you for 
your help.

Mit freundlichen Grüßen

Andreas Rehmer - IT
--------------
Tel.: 030/453081-506




teltarif.de Onlineverlag GmbH
Alt-Moabit 96c, 10559 Berlin
Tel:  +49 (0)30 453 081-0
Fax:  +49 (0)30 453 081-11
Mail: mailto:info@teltarif.de
WWW:  http://www.teltarif.de

Geschäftsführer: Kai Petzke, Martin Müller
eingetragen beim Amtsgericht Berlin-Charlottenburg, HRB 70507
Umsatzsteuer-ID: DE201038407

Sie wollen auch unterwegs im Bereich Telekommunikation informiert sein?
http://mobil.teltarif.de bringt die gewohnten Informationen auf Ihr Handy.


On Wed, 23 Sep 2009, Jari Fredriksson wrote:

> Date: Wed, 23 Sep 2009 14:41:06
> From: Jari Fredriksson <ja...@iki.fi>
> To: users@spamassassin.apache.org
> Subject: Re: After moving mailserver to another box three rules dont work
> 
>> Hi out there,
>>
>> Sep 22 15:17:17 web14 amavis[21065]: SA info: config:
>> failed to parse line, skipping, in
>> "/etc/mail/spamassassin/teltarifregeln.cf": rawbodyfull
>> X_SMALLFONTLONGTEXT
>> /<FONT\\s+(FACE="[^"]*"\\s)?size="?1"?>(<br>|<p>|<\\/p>|[^<>]|\\r|\\n){160}/is
>>
>> but all this rules worked fine on the old machine. Any
>> sugestions?
>>
>
> I guess you need to post the teltarifregeln.cf for us to see it. It's a custom config file after all.
>

Re: After moving mailserver to another box three rules dont work

Posted by Jari Fredriksson <ja...@iki.fi>.
> Hi out there,
> 
> Sep 22 15:17:17 web14 amavis[21065]: SA info: config:
> failed to parse line, skipping, in
> "/etc/mail/spamassassin/teltarifregeln.cf": rawbodyfull
> X_SMALLFONTLONGTEXT
> /<FONT\\s+(FACE="[^"]*"\\s)?size="?1"?>(<br>|<p>|<\\/p>|[^<>]|\\r|\\n){160}/is
> 
> but all this rules worked fine on the old machine. Any
> sugestions? 
> 

I guess you need to post the teltarifregeln.cf for us to see it. It's a custom config file after all.

Re: After moving mailserver to another box three rules dont work

Posted by Anthony Peacock <a....@chime.ucl.ac.uk>.
Hi,

That config file (/etc/mail/spamassassin/teltarifregeln.cf) is not one 
of the standard ones, it is possible that it has been corrupted during 
the transfer.

These three rules start with the type "rawbodyfull", that is not a valid 
rule type, it should be either "rawbody" or "full".

If this really was working on exactly the same version of SpamAssassin 
on the other server, then I can only think that the config file was 
corrupted in transfer.

Andreas Rehmer wrote:
> Hi out there,
> 
> as described in the Subject my Problem is the following:
> 
> I moved my Mailserver (inclusiv spamassassin) to a new machine.
>> From an old and slow i386 Server to an brand new x86_64 machine.
> On both boxes run CentOS 5.3 (up to date) and on both
> run spamassassin 3.2.5 only the arch is differnt. Spamassassin is 
> invoked by amavis. After setting up the machine and starting amavisd i 
> got the following Error:
> 
> Sep 22 15:17:17 web14 amavis[21065]: SA info: config: failed to parse 
> line, skipping, in "/etc/mail/spamassassin/teltarifregeln.cf": 
> rawbodyfull __MORTGAGE1 /current mortgage.* lowest rates.* loan .* 
> monthly.*pmt /is
> 
> Sep 22 15:17:17 web14 amavis[21065]: SA info: config: failed to parse 
> line, skipping, in "/etc/mail/spamassassin/teltarifregeln.cf": 
> rawbodyfull X_SPAMIMGTAG /(<p>|<FONT (face=[^<> ]* )?size=[^<> 
> ]*>|<DIV>)(<[aA] 
> href="[^"]*">)?<IMG[\\s\\r\\n=20]+alt="[^"]*"[\\s\\r\\n=20]+hspace=0[\\s\\r\\n=20]+src="[^"]*"[\\s\\r\\n=20]+align=[\\s\\r\\n=20]*baseline=?[\\s\\r\\n=20]+border=0>(<\\/[aA]>)?(<\\/p>|<\\/FONT>|<\\/DIV>)/s 
> 
> 
> Sep 22 15:17:17 web14 amavis[21065]: SA info: config: failed to parse 
> line, skipping, in "/etc/mail/spamassassin/teltarifregeln.cf": 
> rawbodyfull X_SMALLFONTLONGTEXT 
> /<FONT\\s+(FACE="[^"]*"\\s)?size="?1"?>(<br>|<p>|<\\/p>|[^<>]|\\r|\\n){160}/is 
> 
> 
> but all this rules worked fine on the old machine. Any sugestions?
> 
> Mit freundlichen Grüßen
> 
> Andreas Rehmer - IT
> --------------
> Tel.: 030/453081-506
> 
> 
> 
> 
> teltarif.de Onlineverlag GmbH
> Alt-Moabit 96c, 10559 Berlin
> Tel:  +49 (0)30 453 081-0
> Fax:  +49 (0)30 453 081-11
> Mail: mailto:info@teltarif.de
> WWW:  http://www.teltarif.de
> 
> Geschäftsführer: Kai Petzke, Martin Müller
> eingetragen beim Amtsgericht Berlin-Charlottenburg, HRB 70507
> Umsatzsteuer-ID: DE201038407
> 
> Sie wollen auch unterwegs im Bereich Telekommunikation informiert sein?
> http://mobil.teltarif.de bringt die gewohnten Informationen auf Ihr Handy.
> 
> 
> 


-- 
Anthony Peacock
Head of Reasearch & Development, FBS Advanced IT Support Centre
CHIME, Whittington Campus
WWW:    http://www.chime.ucl.ac.uk/~rmhiajp/