

Code: Select all
ifplugin Mail::SpamAssassin::Plugin::RelayCountry
header COUNTRY_RELAY_IN X-Relay-Countries =~ /IN/
describe COUNTRY_RELAY_IN Relayed through India
score COUNTRY_RELAY_IN 3.5
header COUNTRY_RELAY_KP X-Relay-Countries =~ /KP/
describe COUNTRY_RELAY_KP Relayed through Korea North
score COUNTRY_RELAY_KP 4.5
header COUNTRY_RELAY_PK X-Relay-Countries =~ /PK/
describe COUNTRY_RELAY_PK Relayed through Pakistan
score COUNTRY_RELAY_PK 5.5
header COUNTRY_RELAY_RO X-Relay-Countries =~ /RO/
describe COUNTRY_RELAY_RO Relayed through Romania
score COUNTRY_RELAY_RO 6.5
header COUNTRY_RELAY_RU X-Relay-Countries =~ /RU/
describe COUNTRY_RELAY_RU Relayed through Russia
score COUNTRY_RELAY_RU 7.5
endif # Mail::SpamAssassin::Plugin::RelayCountry
Code: Select all
header SPAMMING_IP Received =~ /5\.188\.129\.
describe SPAMMING_IP Spam Mail from 5.188.129/24
score SPAMMING_IP 8.0
Code: Select all
ll /etc/mail/spamassassin/
Code: Select all
-rw-r--r--. 1 root root 2369 Nov 15 22:48 country.cf
-rw-r--r--. 1 root root 3390 Dec 1 14:37 descriptions.cf
-rw-r--r--. 1 root root 1287 Apr 24 16:14 init.pre
-rw-r--r--. 1 root root 2619 Feb 1 15:43 local.cf
lrwxrwxrwx. 1 root root 34 Apr 24 16:14 mailscanner.cf -> /etc/MailScanner/spamassassin.conf
lrwxrwxrwx. 1 root root 34 Apr 18 16:07 MailScanner.cf -> /etc/MailScanner/spamassassin.conf
drwx------. 2 root root 83 Apr 28 03:32 sa-update-keys
-rw-r--r--. 1 root root 2523 Nov 15 20:18 v310.pre
-rw-r--r--. 1 root root 1194 Nov 4 11:51 v312.pre
-rw-r--r--. 1 root root 2412 Nov 15 20:18 v320.pre
-rw-r--r--. 1 root root 1237 Nov 4 11:51 v330.pre
-rw-r--r--. 1 root root 1020 Nov 4 11:51 v340.pre
-rw-r--r--. 1 root root 1303 Nov 15 20:18 v341.pre
-rw-r--r--. 1 root root 1499 Nov 15 20:18 v342.pre
-rw-r--r--. 1 root root 949 Apr 24 16:14 v343.pre
Code: Select all
tail -F /var/log/audit/audit.log
I don't think your regex syntax is correct.bikertrash wrote: 03 May 2020 12:01 And... another one came right through yesterday... same sub-net...
Oh well...
![]()
Code: Select all
header CLASSMATE_NET Received =~ /208\.84\.4[0-7]\.\d{1,3}/
describe CLASSMATE_NET Spam Mail from 208.84.40.0/21
score CLASSMATE_NET 9.0
Permissions match minebikertrash wrote: 03 May 2020 13:49 The file is this in /etc/mail/spamassassin/blockip.cf
The permissions on the file are this:
-rw-r--r--. 1 root root 8271 Apr 29 04:45 blockip.cf
Is this correct?
Just use mine so you don't need 7 different rules. If you look at the validator those "/" are already there at beginning and end. and there is no benefit to using the grouping with parenthesis (it's not hurting anything either)bikertrash wrote: 03 May 2020 13:58 I think I found the problem thanks to the link you posted above....
THIS: =~ /(208\.84\.40\.)/
Should actually be THIS: =~ (208\.84\.40\.)
Does that look right?
This first one when entered into that link highlighted both "/" in red and said "pattern error"...
^^^^This catches every ip from 208.84.40.0 to 208.84.47.255smyers119 wrote: 03 May 2020 13:10 I am not a expert, and I didn't test this. but you can try adding this in local.cfCode: Select all
header CLASSMATE_NET Received =~ /208\.84\.4[0-7]\.\d{1,3}/ describe CLASSMATE_NET Spam Mail from 208.84.40.0/21 score CLASSMATE_NET 9.0
It works!
Earth is big, and there a still a lot of people without eFa not able to cut down on spamI sort of doubt there a many people on this earth that hate spam as much as I do...