procmail
[Top] [All Lists]

Re: Accept all mail sourced from IP address range

2006-06-23 13:32:48
On Fri, Jun 23, 2006 at 10:19:57PM +0200, Dallman Ross wrote:

  MYSLASH27 = 205\.0?86\.0?56\.(0?3[2-9]|0?[45][0-9]|0?6[0-3]) 
    MYNAT24 = 192\.168\.128\.([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])

   :0
   *  1 ^1  ^Received:
   * -1 ^1  ^Received:.*\[($MYSLASH27|$MYNAT24)]]
   { HOST = abort }

I forgot the $ in the second condition.

     *$ -1 ^1  ^Received:.*\[($MYSLASH27|$MYNAT24)]]

Dallman

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail