Re: [Exim] relay control: host_lookup, +allow_unknown

Pàgina inicial
Delete this message
Reply to this message
Autor: Suresh Ramasubramanian
Data:  
A: exim-users
Assumpte: Re: [Exim] relay control: host_lookup, +allow_unknown
Andreas M. Kirchwitz rearranged electrons thusly:

> How do I allow relaying for a certain IP address range that has
> no DNS reverse lookup?


Give the ip blocks in CIDR format (ip/32, ip block /24 etc). And disable host
lookup for those IP blocks.

Then suppose the ip is 192.168.1.1 (ya, I know it is rfc 1918 space <g>) in
the host_lookup option, give

host_lookup = !192.168.1.1:0.0.0.0/0

That will verify hosts for all ip's except 192.168.1.1

> For some IP address ranges listed in "host_accept_relay", I get
> the following messages in my logfile:
> refused relay (host) [...] (failed to find host name from IP address)


Dont check the hostname there - and don't relay for hostnames - relay for
specific ips or ip blocks.

>     host_lookup = 0.0.0.0/0 : !1.2.3.0/24


You got it - but put the !1.2.3.0/24 _before_ the 0.0.0.0/0 - which is applied
first so that your exception is ignored ;)

--
Suresh Ramasubramanian + sureshr@???
Linux is like a Teepee - No Windows, No Gates, Apache Inside