exim4 - dnslookup - ignore_target_hosts

The dnslookup section of the exim4 config contains

# ignore private rfc1918 and APIPA addresses
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :\
172.16.0.0/12 : 10.0.0.0/8 : 169.254.0.0/16

To allow one specific subnet thru change it:
# ignore private rfc1918 and APIPA addresses
ignore_target_hosts = !192.168.3.0/24 : 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :\
172.16.0.0/12 : 10.0.0.0/8 : 169.254.0.0/16

Here it allows the 192.168.3.x network.

Technorati Tags:

Comments

Hi, i tryng to allow one

Hi, i tryng to allow one specific subnet. I modify the line:

ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :\
172.16.0.0/12 : 10.0.0.0/8 : 169.254.0.0/16 :\
255.255.255.255

and edit this way:

ignore_target_hosts = !192.168.1.0/24 : 0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :\
172.16.0.0/12 : 10.0.0.0/8 : 169.254.0.0/16 :\
255.255.255.255
to alloe subnet 192.168.1.0, but when i do: exim -d -bt user@domain.com:

192.168.1.119 in "0.0.0.0 : 127.0.0.0/8 : 192.168.0.0/16 :172.16.0.0/12 : 10.0.0.0/8 : 169.254.0.0/16 :255.255.255.255"? yes (matched "192.168.0.0/16")
ignored host mail.domain.com [192.168.1.119]

it's like the ignore_target_hosts don't change after modify.

Can anyone help me? (Sorry for my english).

Some checks

Hmm. It looks like exim4 didn't pick up the change.

You can check what config file exim4 is actually using by running

exim4 -bP configure_file

Is the response the file you are editing ?

Are you using split file configuration on debian? If so - did you edit in /var/lib/exim4/config.autogenerated - if so then it will be overwritten at startup - you'd need to edit under /etc/exim4.

You did restart exim after the change? Sorry if this sounds a little basic - just making sure :)