[exim] host list patterns question (cidr in cdb?)

Pàgina inicial
Delete this message
Reply to this message
Autor: Brian
Data:  
A: exim-users
Assumpte: [exim] host list patterns question (cidr in cdb?)
Trying to figure out what search type I would have to use for aggregrated
IPs like that of the bogon lists?

I have made this into a cdb:

http://www.cymru.com/Documents/bogon-bn-agg.txt

and I am trying to use it like this in my exim configure:

hostlist bogon = net-cdb;EXIM_DIR/cdb/bogon.cdb

and I try to use it in my acl_smtp_connect

drop message    = message here
hosts           = +bogon
log_message     = bogon cdb



but when I test it with this command:

exim -bhc 192.168.1.1 -d+acl

I get to the smtp banner (220). I am not running this from an rfc1918
host, but from an actual valid IP.

What am I doing wrong?

Thanks in advance.

..
processing "drop"
check hosts = +bogon
search_open: cdb "/usr/local/etc/exim/cdb/bogon.cdb"
search_find: file="/usr/local/etc/exim/cdb/bogon.cdb"
key="192.168.1.1" partial=-1 affix=NULL starflags=0
LRU list:
0/usr/local/etc/exim/cdb/bogon.cdb
End
internal_search_find: file="/usr/local/etc/exim/cdb/bogon.cdb"
type=cdb key="192.168.1.1"
file lookup required for 192.168.1.1
in /usr/local/etc/exim/cdb/bogon.cdb
lookup failed
host in "net-cdb;/usr/local/etc/exim/cdb/bogon.cdb"? no (end of list)
..