3

Does using "Trusted Networks" in SpamAssasins local.cf in a way so you use a ! before a IP address, block the given IP address?

The documentation is not clear regarding this issue.

Does

trusted_networks !192.168.1.1

Block the given IP address?

I'm aware of being able to block the IP address using IPtables - I'm just wondering is there any way to do it using SpamAssasin.

Rene
  • 179
  • 2
  • 9

1 Answers1

2

trusted_networks is not the correct way of doing this within SpamAssasin.

However, this can be done by setting a blacklist_from filter. The docs explain this well.

If the IP you are trying to block is spam, it may also be worth using iptables or ufw to block it as well, for added security.

iptables -A INPUT -s x.x.x.x -p tcp --dport 25 -j DROP
iptables -A INPUT -s x.x.x.x -j REJECT
Hatclock
  • 65
  • 6