Re: [Exim] anti-relay

Top Page
Delete this message
Reply to this message
Author: Nigel Metheringham
Date:  
To: Andreas Gietl
CC: exim-users
Subject: Re: [Exim] anti-relay
a.gietl@??? said:
> i am looking for a method to prevent spamming from my exim. I've got
> not static list of ips that are allowed to relay via my exim. The list
> is dynamic. So i use host_accept_relay = +allow_unknown : 127.0.0.1 :
> localhost : lsearch;/etc/relayhosts The problem with this setting is
> that everbody who has no PTR on his domain can relay thru my exim. I
> chose this setting, because people who have no ptr but who's ips are
> enlisted in the /etc/relayhosts were not allowed to relay.


Assuming your list of relay hosts is a list of currently allowed IP
addresses netmasks, then change your config to:-

host_accept_relay = 127.0.0.1/32 : /etc/relayhosts

/etc/relayhosts should contain entries like
 1.2.3.4/32    some other data
 2.3.4.5/32    etc


    Nigel.


-- 
[ Nigel Metheringham           Nigel.Metheringham@??? ]
[ Phone: +44 1423 850000                         Fax +44 1423 858866 ]
[ - Comments in this message are my own and not ITO opinion/policy - ]