[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Qube 3 - How to stop spam?



> I'd like to setup my qube 3 so that all incoming mails will be rejected
unless
> they are destined for my domain/IP.
>
I don't think your smtp will accept any mails that aren't destined for your
IP
anyway!
But, you could set an input rule (in ipchains) for your ip only.

/sbin/ipchains -A input -p tcp -s 0.0.0.0/0 125:125 -d 0.0.0.0/0 125:125 -i
eth1 -j DENY
/sbin/ipchains -A input -p tcp -s 0.0.0.0/0 125:125 -d my.ip.bl.ock/mask
125:125 -i eth1 -j ACCEPT
my.ip.bl.ock.mask  = 1.2.3.4/24 or what ever your block is; for one ip put
1.2.3.4 only

You can do this through  the GUI Basic Firewall
or add lines similar to above to /etc/ipchains.conf
Gerald