Le 27/01/2011 14:22, polloxx a écrit :
> On Wed, Jan 26, 2011 at 6:20 PM, Victor Duchovni
> <victor.ducho...@morganstanley.com> wrote:
>> On Wed, Jan 26, 2011 at 06:14:26PM +0100, polloxx wrote:
>>
>>>>> We want to implement blacklisting sender email addresses on a per-domain
>>>>> basis.  I know it can be done by Amavis but I would like to implement
>>>>> this directly in Postfix.  Is this possible?
>>>>
>>>> Yes, using smtpd_restriction_classes. ?General usage info can be found 
>>>> here:
>>>> http://www.postfix.org/RESTRICTION_CLASS_README.html
>>>
>>> As far as I can see this approach works with two lookup tables. Can we
>>> add domains dynamicly, without the need to create a new table when a
>>> new domain is added?
>>
>> If you have a fixed "menu" of restriction settings,
>> "spam-lover", "spam-hater", "spam-neutral", ...
>>
>> you can add as many domains as you wish by mapping each domain to one
>> of the fixed restriction settings. If you want fully custom settings for
>> each domain, and want to scale this to many domains, Postfix is not the
>> right tool, you need a milter or pre-queue proxy filter.
>>
>> --
>>        Viktor.
>>
> 
> I want to be able to block senders on customer (domain) request:
> 
> block a...@spam.tld, b...@evil.tld for domain customer1.tld
> block c...@hell.tld for domain customer2.tlc etc


if it's "customer foo wants to block joe and jim", then no. use a policy
service.

if you can classify your rules as "class1", "class2"... and put each
customer in a class, then you can use postfix retriction classes.

Reply via email to