rewrite_subject and subject_tag has been substituted for spamassassin version 3.x to rewrite_header Subject

Monday, 21st June 2010

While I was checking one of the spamassassin daemon that I have installed in the past for configuration errors in loca.cf and the other loaded spamassassin conf rules file, I have faced the following error:

This warnings appeared when I was checking my spamassassin configuration using the command:

debian-server:~# spamassassin --lint

Issuing the up-mentioned command returned the following warnings:

[18056] warn: config: failed to parse line, skipping, in “/etc/spamassassin/local.cf”: rewrite_subject 1[18056] warn: config: failed to parse line, skipping, in “/etc/spamassassin/local.cf”: subject_tag [SPAM found in message][18056] warn: lint: 2 issues detected, please rerun with debug enabled for more information

A quick search in google for the error opened my eyes that actually I’m using old and obsolete spamassassin directives in my /etc/mail/spamassassin/local.cf

Starting with version 3.x of spamassassin different syntax is used to tag cought spam messages and substitute them for a different custom selected header.

1. To solve the issue all I had to edit my /etc/mail/spamassassin/local.cf

2. Comment out or delete in the local.cf file:

rewrite_subject 1
subject_tag [SPAM found in message]

So after the change the two directives should be with the shebang shebang, e.g.:

#rewrite_subject 1
#subject_tag [SPAM found in message]

3. Now include the spamassassin substitute for rewrite_subject and subject_tag rewrite_header Subject

For instance put in local.cf something like:

rewrite_header Subject *****SPAM*****
Now restart your spamassassin either by invoking /etc/init.d/spamassassin restart if it’s running as a stand alone daemon or if it’s ran through daemontools my will have to restart it with svc, like for instance:

debian-server:~# svc -d /service/spamd
debian-server:~# svc -t /service/spamd
debian-server:~# svc -u /service/spamd

The warning messages:

[18056] warn: config: failed to parse line, skipping, in “/etc/spamassassin/local.cf”: rewrite_subject 1[18056] warn: config: failed to parse line, skipping, in “/etc/spamassassin/local.cf”: subject_tag [SPAM found in message][18056] warn: lint: 2 issues detected, please rerun with debug enabled for more informationshould no longer appear whilst you check your spamassassin configuration 🙂

Share this on:

Download PDFDownload PDF

Tags:

2 Responses to “rewrite_subject and subject_tag has been substituted for spamassassin version 3.x to rewrite_header Subject”

  1. Doahh says:
    Firefox 4.0.1 Firefox 4.0.1 GNU/Linux x64 GNU/Linux x64
    Mozilla/5.0 (X11; Linux i686 on x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

    Thanks, this seemed to fix my problem.

    View CommentView Comment
    • admin says:
      Epiphany 2.30.6 Epiphany 2.30.6 Debian GNU/Linux x64 Debian GNU/Linux x64
      Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/531.2+ Debian/squeeze (2.30.6-1) Epiphany/2.30.6

      glad it helped, hope to see ya around 🙂

      View CommentView Comment

Leave a Reply

CommentLuv badge