Re: [Exim] Restrict relaying for one IP address?

Top Page
Delete this message
Reply to this message
Author: Jim Tittsler
Date:  
To: Scott Truman
CC: Exim-Users
Subject: Re: [Exim] Restrict relaying for one IP address?
On Mon, Sep 04, 2000 at 07:42:30PM +1200, Scott Truman wrote:
> To get around this I have
> "host_accept_relay=127.0.0.1:client1:client2....etc", obviously this line
> becomes very long and is not ideal when new PC's are added to the network.
>
> So my question's are:
>
> 1. How do I restrict relaying BY IP ADDRESS but allow local deliver from
> this IP?


You might try using the ! negation operator in the host list.
host_accept_relay = 127.0.0.1:!192.168.1.1:192.168.1.0/24
(if 192.168.1.1 were your proxy server)

> 2. How do I list the "host_accept_relay" ips in a seperate file.


List them one per line and replace the entire host list with
the absolute pathname to that file.

> I'm sure this must be possible, but I am confused by the documentation.


Check the section on host lists (7.15).


-- 
Jim Tittsler, Tokyo
Python Starship     http://starship.python.net/crew/jwt/