# spamassassin help

**URL:** <https://forums.interworx.com/t/spamassassin-help/13541>\
**Category:** Hacks / Tools / Tips / Tricks\
**Tags:** spamassasin\
**Created:** [April 14, 2014, 10:39pm UTC](https://forums.interworx.com/t/spamassassin-help/13541 "2014-04-14T22:39:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonsharp](https://forums.interworx.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jonsharp](https://forums.interworx.com/u/jonsharp)\
**Post date:** [April 14, 2014, 10:39pm UTC](https://forums.interworx.com/t/spamassassin-help/13541/1 "2014-04-14T22:39:49Z")

</div>

Hi All  
I am new user if interworx. Can someone with more experience tell me how can do or best practice to add custom filters in spamassassin  
to mark as spam with height score message by text in BODY and filter message by text in SUBJECT. At this moment i write rules in local.cf but don’t think it is best practice

Thanks

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [April 15, 2014, 12:49am UTC](https://forums.interworx.com/t/spamassassin-help/13541/2 "2014-04-15T00:49:41Z")

</div>

Hi Jon

I hope you don’t mind, but I am not too sure of your actual question, unless I am over reading which is possible sorry.

You can handcode rules, or you can use the IW GUI to make changes/setup custom rules as you wish, and it is set as follows:

Server Wide - Login to nodeworx - system services - mail server - spam filtering - Add Spam Preferences

Domain Wide - allow user to login to siteworx - Administration - mail options - spam settings (you can also set adanced/custom options and/or global default options)

User Only - users have to login to webmail and set spam preferences

I also advice setting your own SRBL/RBL you prefer to use in MTA, and any additional blocks you see prefer, ie IP blocking etc.

We have dedicated fully managed mail platforms, but these involve additional costs to the users, so the user can just carry on with their normal work.

I hope this helps a little and sorry if I have misunderstood your post

Many thanks

John

---

<div class="post-metadata">

**Author:** ![jonsharp](https://forums.interworx.com/letter_avatar_proxy/v4/letter/j/e480ec/32.png) [@jonsharp](https://forums.interworx.com/u/jonsharp)\
**Post date:** [April 16, 2014, 10:24pm UTC](https://forums.interworx.com/t/spamassassin-help/13541/3 "2014-04-16T22:24:44Z")

</div>

Thanks John  
probably i cannot explain , that’s why will give you simple example

Subject: Say “Oh!” and “Ah!” all the nights with Eustacia Glazener  
Body:  
Hello dvnyumssn,

Thank you for registering at Panther Equities - Investors In The Future. Your account is created and must be activated before you can use it.  
To activate the account click on the following link or copy-paste it in your browser:

How can i mark/ block / as spam similar email with same subject or body “Panther Equities” with these words in it via Add Spam Preference

now i write follow in /etc/mail/spamassassin/local.cf  
header LOCAL\_DEMONSTRATION\_SUBJECT Subject =~ /Say “Oh!” and “Ah!” all the nights with Eustacia Glazener/i  
score LOCAL\_DEMONSTRATION\_SUBJECT 40.1

Thanks for help.

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [April 17, 2014, 6:08am UTC](https://forums.interworx.com/t/spamassassin-help/13541/4 "2014-04-17T06:08:32Z")

</div>

Hi Jon

I hope you don’t mind but if our clients want trouble free spam, they have to pay extra for our dedicated managed mail platforms.

That said though, I would think you set as follows

Add header - local\_demo\_body body=~/\panther equities/i

Describe local\_demo\_body test for panther equities

Score local\_demo\_body 40.1

I could be wrong sorry, and other users on the forum may have more knowledge of SA, but you may have to be patient. Our managed mail platforms do not use SA.

I hope that helps a little and as I said, I apologise if I’m wrong

Many thanks

John

---

<div class="post-metadata">

**Author:** ![d2d4j](https://forums.interworx.com/user_avatar/forums.interworx.com/d2d4j/32/16_2.png) [@d2d4j](https://forums.interworx.com/u/d2d4j)\
**Post date:** [April 17, 2014, 9:02am UTC](https://forums.interworx.com/t/spamassassin-help/13541/5 "2014-04-17T09:02:52Z")

</div>

Hi Jon

Sorry I have just reread my post, and I may not have been precise, goto nodeworx, service settings, mail server, spam settings, add spam preference and locate add header, score and describe for the settings.

Also, describe may need to go last in list and I think I missed \b off as in /\panther equities\b /i

I hope that helps

Many thanks

John
