Re: Blacklist per-domain
- Le 27/01/2011 14:22, polloxx a écrit :
> On Wed, Jan 26, 2011 at 6:20 PM, Victor Duchovniif it's "customer foo wants to block joe and jim", then no. use a policy
> <Victor.Duchovni@...> 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:
>>> 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.
> I want to be able to block senders on customer (domain) request:
> block a@..., b@... for domain customer1.tld
> block c@... for domain customer2.tlc etc
if you can classify your rules as "class1", "class2"... and put each
customer in a class, then you can use postfix retriction classes.