OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: simple blocking based on addresses

From: Derek B. Noonburg (dereknfoolabs.com)
Date: Wed Jan 03 2007 - 18:54:18 CST


On 2 Jan, mouss wrote:
> Derek B. Noonburg wrote:
>> I looked at the postfix docs on filtering, etc., but it gets really
>> complicated really fast. Is there an easy way to just kill anything
>> sent from ab to cd?
>
> There is no "general" solution because postfix checks do not "keep state".
>
> if this is only for few addresses (or if you can setup few address
> groups), then you can use restrictions classes.

It's actually for exactly one address. (I run a small server, and this
particular virus spam was eating over a third of the bandwidth used by
my email server.)

Your suggestion did the trick. Thanks.

- Derek