Re: [Exim] IP address in host_list?

Top Pagina
Delete this message
Reply to this message
Auteur: Peter Radcliffe
Datum:  
Aan: exim-users
Onderwerp: Re: [Exim] IP address in host_list?
"Dave C." <davec@???> probably said:
> b: /etc/exim/pop_smtp_auth.users, which should be of a format:
> 10.0.0.1:username
> 10.0.2.3:other_username
>
> and then:
>
> host_accept_relay = " /etc/exim/pop_smtp_auth : ! * "
>
> (if anyone can figure out how to make host_accept_relay use the file
> with the usernames then these can be combined into one)


if you put 10.0.0.1/32:username in the file, you could use
host_accept_relay = " net32-lsearch;/etc/exim/pop_smtp_auth : ! * "

> to add the header to the message, add the following to any/all
> applicable transports:
>
> headers_add = "X-POP_authentication: ${lookup {$sender_host_address} \
> lsearch {/etc/exim/pop_smtp_auth.users} {$value}}


and this would put 10.0.0.1/32 in.
Unfortunately unless you put the /32 on the end and use net32 it'll
look them up as hostnames.

Philip - RFE, could net32- also match just the IP address without the /32 ?
Is that reasonable ?

P.

-- 
pir               pir@???      pir@???      pir@???