[milters] Archive

Lists Index Date Thread Search

Article: 1768
From: Anthony Howe
Date: 2007-10-07 05:49:09 -0400
Subject: Re: What am I doing wrong in access.db?

Removal...........: milters-request@milter.info?subject=remove
More information..: http://www.milter.info/#Support
--------------------------------------------------------

Jim Hermann - UUN Hostmaster wrote:
> # Remove these two entries per Anthony C Howe with Snert
> #Connect:localhost.localdomain          RELAY
> #Connect:localhost                      RELAY
> Connect:127.0.0.1                       RELAY
> # scan internal email for SPF failures
> milter-spiff-Connect:127.0.0.1          REJECT
> 
> Then I run:
> makemap hash access < access
> 
> Why doesn't this cause milter-spiff to check email from localhost?

Because in the case of milter-spiff:

a) blacklisting has no effect;

b) 127.0.0.1 is hard coded to always be white listed. If you want to 
check localhost then change line 254:

	access = smfAccessHost(&data->work, MILTER_NAME "-connect:", 
client_name, data->client_addr, SMDB_ACCESS_OK);


to

	access = smfAccessHost(&data->work, MILTER_NAME "-connect:", 
client_name, data->client_addr, SMDB_ACCESS_UNKNOWN);



-- 
Anthony C Howe          Skype: SirWumpus                    SnertSoft
+33 6 11 89 73 78         ICQ: 7116561          BarricadeMX & Milters
http://www.snert.com/                 
     http://www.snertsoft.com/

Lists Index Date Thread Search