On Sat, Jun 27, 2009 at 12:00:09AM +0200, mouss wrote: > Louis-David Mitterrand a ?crit : > > Hi, > > > > A lot of spam comes from certain ip ranges (e.g. west africa) through > > relays (large ISPs) that would be too onerous to block. To filter these > > I am presently matching: > > > > /^((Received|X-Originating-IP):.+\b(124\.120\.1\.(<IP RANGE IN > > REGEX>)\b/ > > in pcre:/etc/postfix/header_access. But converting IP ranges to regex'es > > is time consuming and error prone. > > except for simple cases, it is impossible.
Impossible is too strong. Just painful if done by hand. -- Viktor. Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the "Reply-To" header. To unsubscribe from the postfix-users list, visit http://www.postfix.org/lists.html or click the link below: <mailto:majord...@postfix.org?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.