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

Re: [cobalt-developers] block spam email question



> Hello all
>
> Is there any way to filter all mail from a particular domain - a
continuous
> SPAM producer - so it never gets to the end users at all. I'd like to
> eliminate it on the server level.
>
> Thanks, as always.
>
Use ipchains, which will also give them fits, why even receive it!

#SMTP BLOC these host
ipchains -A input -p tcp -s <block.this.host> -d <my.ip.block> 25 -j DENY -l
#SMTP Accept for all
ipchains -A input -p tcp -s 0/0 -d <my-ip-block> 25 -j ACCEPT
Put the host name/ip in the <bloc.this.host> and your ip in <my.ip.block>
maybe 1.2.3.4/24
-l if you want to log it.

Gerald