SA |subject_tag| variable - changing the server-wide default value

mmerlin

Verified User
Joined
Jul 26, 2004
Messages
75
Location
Melbourne, Australia
Maybe this question could be in the API section, although I feel it is more email specific.

Question:
Where is the default value of the |subject_tag| variable stored and how can I change it?

The |subject_tag| variable is the one visible in the control panel under
Spamassassin Settings, next to the text "Yes, set the subject to the following:"

I want to change the default SpamAssassin subject rewrite value for all new domains
to be:
{Spam?} _HITS_ -
instead of the current value:
*****SPAM*****


Background:
On my server I had to make a change to exim.conf in order to get the Spamassassin Settings working via the DA user control panel


After reading this KB article
http://help.directadmin.com/item.php?id=36
I needed to change
transport_filter = /usr/bin/spamc
to
transport_filter = /usr/bin/spamc -u ${lookup{$domain}lsearch*{/etc/virtual/domainowners}{$value}}

So now I have have the SpamAssassin Settings working in the user control panel. So far so good.



The next challenge which I am currently stuck on is to figure out how to configure the server so that when a new domain is added, the subject rewrite value is set to
{Spam?} _HITS_ -
instead of the current default of
*****SPAM*****



I realize that the individual user files are stored in the format
/home/[username]/.spamassassin/user_prefs

and that these user files can be manually edited via the web interface.


However, I want to set the server-wide default so it happens automatically.



I found the following file which looks quite promising:
/usr/local/directadmin/data/templates/user_prefs

The two lines in particular I am interested in are
subject_tag |subject_tag|
and
rewrite_header subject |subject_tag|


Can anyone please help by suggesting where I can find (and change) the server-wide default value of
this |subject_tag| variable


Thanks and regards.

Michael Merlin
 
Back
Top