On 2/13/2014 11:03 AM, Roman Gelfand wrote:
> I am using this parameter to send message to be filtered by dspam.
> However, I want local email to bypass dspam and go directly to mail
> box server over lmtp.
> 
> I am not sure why the pcre code below doesn't work for local email.
> 
> 
> 
> /^192\.168\.0.\d{1,3}$/ lmtp:[192.168.0.246]:24
> /./   FILTER dspam:dspam
> 
> Thanks in advance
> 

That doesn't work because the check_client_access table is checked
first by client hostname, then by the IP.  So the hostname always
matches /./, even if it's "unknown".

Instead of /./ you could use a pattern that only matches an IP address.
/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/  FILTER dspam:dspam

But it's probably easier to just put permit_mynetworks before the
check_client_access table.



  -- Noel Jones

Reply via email to