Victor Duchovni a écrit :
> On Mon, May 18, 2009 at 08:52:45PM -0400, Jon wrote:
> 
>> Hello list,
>>
>> When building out the various checks available to postfix, is there a 
>> mechanism for doing a REJECT, WARN or OK plus the reason, en mass, without 
>> pasting the same text a lot? For example...
>>
>> bad.guy01.com REJECT 550 Reason1
>> bad.guy02.com REJECT 550 Reason1
>> .
>> .
>> .
>> bad.guy50.com REJECT 550 Reason1
>>
> 
> The make(1) utility can construct the access(5) table from one or more
> master master files using any syntax of your choice. You can list just
> the lookup keys in a file, and auto-generate corresponding access table
> entries, or even use m4(1) which has some prior art for email config files...
> 

This is indeed the most effective method.

alternatives include:

- using mysql or the like, in which case you can use multiple tables...

- using restriction classes.

Reply via email to