[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-developers] block spam email question
- Subject: Re: [cobalt-developers] block spam email question
- From: "Gerald Waugh" <gerald@xxxxxxxxx>
- Date: Tue Oct 2 05:00:06 2001
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
> 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