Welcome, Guest. Please login or register.
Did you miss your activation email?
Saturday 09 November 2024, 04:54:02 am

Login with username, password and session length

Visit the Official Endian Reference Manual  HERE
14250 Posts in 4377 Topics by 6515 Members
Latest Member: hulteends
Search:     Advanced search
+  EFW Support
|-+  Support
| |-+  EFW SMTP, HTTP, SIP, FTP Proxy Support
| | |-+  "RDNS_DYNAMIC3" score - SpamAssassin
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: "RDNS_DYNAMIC3" score - SpamAssassin  (Read 34961 times)
opsystem
Jr. Member
*
Offline Offline

Gender: Male
Posts: 5



« on: Friday 14 December 2018, 11:50:20 pm »

Hello all,

I'm on EFW 3.3.0 with SMTP proxy + antispam enabled. Incoming messages get obviously scanned like this:

Code:
X-Spam-Status: No, score=3.529 tagged_above=0 required=4 tests=[
........

RDNS_DYNAMIC3=1.5,

.......]
autolearn=no

Now I want to change that RDNS_DYNAMIC3=1.5 (I don't want clients to be discriminated if they send emails from dynamic IPs). But I can't figure out how and where to edit it. I've tried to add:

Code:
score RDNS_DYNAMIC 0
score RDNS_DYNAMIC3 0

in /etc/spamd/local.cf.tmpl, but it has no effects. I know that the main SA files are in /var/lib/spamassassin/3.003002/updates_spamassassin_org but I doubt that's the right place for customizations.

Any clues?
Thanks for helping me
Gabriele
Logged
opsystem
Jr. Member
*
Offline Offline

Gender: Male
Posts: 5



« Reply #1 on: Saturday 15 December 2018, 12:10:27 am »

Ok, this seems working as a workaround:

/var/lib/spamassassin/3.003002/spamassassin_emaillab_jp/20_head_tests.cf
Code:
meta	 RDNS_DYNAMIC3	( __LAST_UNTRUSTED_RELAY_NO_AUTH && !RDNS_DYNAMIC && !__RDNS_DYNAMIC_BL && !__RDNS_STATIC2 && !__RDNS_STATIC && __RDNS_DYNAMIC_S25R )
describe RDNS_DYNAMIC3 Delivered to trusted network by host with dynamic-looking rDNS
score RDNS_DYNAMIC3 0.0

##############################################################################

This seems to survive reboots, howerver I'm not convinced at all!
 Huh  Huh  Huh  Huh
Logged
Dark-Vex
Sr. Member
****
Offline Offline

Posts: 105


« Reply #2 on: Monday 07 January 2019, 07:26:31 pm »

Hi,

is better if you revert back the modification, you will lost it in case of Endian updates spamassassin.
If you want to add custom scores, please add it inside the file /var/efw/spamassassin/localcf.custom.tmpl (create it if doesn't exist), after placing your custom scores you should restart the smtp proxy with the command:
jobcontrol restart smtpscan --force

Daniele
Logged
opsystem
Jr. Member
*
Offline Offline

Gender: Male
Posts: 5



« Reply #3 on: Wednesday 09 January 2019, 09:35:03 am »

Hi Daniele, thanks for your answer, I know that I’ll loose my changes when I upgrade, but on EFW 3.3 I’ve never found the right place for the SA custom file.

  • There’s no updated documentation
  • Using any of these files has no effects at all:

    • /var/efw/spamassassin/localcf.custom.tmpl
    • /var/efw/spamassassin/local.cf.tmpl
    • /var/efw/smtpscan/localcf.custom.tmpl


So they are not used.

Honestly I’ve no time to try every combination of paths and filenames, nor to debug the SA loading routines, so I hope that someone will post the right solution.

As a side note, these are the files that are loaded by SA:

Code:
spamassassin -D --lint 2>&1 | grep using
Jan  8 23:19:40.808 [4857] dbg: ignore: using a test message to lint rules
Jan  8 23:19:40.808 [4857] dbg: config: using "/etc/spamassassin" for site rules pre files
Jan  8 23:19:40.810 [4857] dbg: config: using "/var/lib/spamassassin/3.003002" for sys rules pre files
Jan  8 23:19:40.810 [4857] dbg: config: using "/var/lib/spamassassin/3.003002" for default rules dir
Jan  8 23:19:40.811 [4857] dbg: config: using "/etc/spamassassin" for site rules dir
Jan  8 23:19:40.919 [4857] dbg: config: using "/var/lib/spamassassin/3.003002/spamassassin_emaillab_jp/20_body_tests.cf" for included file
Jan  8 23:19:40.922 [4857] dbg: config: using "/var/lib/spamassassin/3.003002/spamassassin_emaillab_jp/20_head_tests.cf" for included file

[...]

Jan  8 23:19:41.507 [4857] dbg: config: using "/var/lib/spamassassin/3.003002/updates_spamassassin_org/local.cf" for included file
Jan  8 23:19:41.508 [4857] dbg: config: using "/var/lib/spamassassin/3.003002/updates_spamassassin_org/regression_tests.cf" for included file

Logged
opsystem
Jr. Member
*
Offline Offline

Gender: Male
Posts: 5



« Reply #4 on: Wednesday 09 January 2019, 10:57:55 am »

Ok, here is one “almost” solution I’ve found:

1. Open /etc/spamassassin/local.cf.tmpl

2. Change:

Code:
#include “/var/efw/smtpscan/local_cf.custom.tmpl”

to:

Code:
include /var/efw/smtpscan/local_cf.custom.tmpl

(quotes must be removed)

Now you can create the /var/efw/smtpscan/local_cf.custom.tmpl file and put your customization in there. This seems to be effective on emaillab_jp scores too.

Note: I’m not sure that the local.cf.tmpl edit will persist upon the EFW upgrade

Cheers  Cool
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Page created in 0.047 seconds with 19 queries.
Powered by SMF 1.1 RC2 | SMF © 2001-2005, Lewis Media Design by 7dana.com