Re: [Exim] rejecting based on HELO

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Matthew Byng-Maddick
Datum:  
To: exim-users
Betreff: Re: [Exim] rejecting based on HELO
On Thu, Sep 04, 2003 at 08:05:52AM +0530, Suresh Ramasubramanian wrote:
> # Forged HELOs
>  deny    message = Forged hostname detected in HELO - $sender_helo_name
>          hosts   = !+relay_from_hosts
>          log_message = Forged hostname detected in HELO - $sender_helo_name
>         condition = ${lookup {$sender_helo_name} lsearch{/usr/local/etc/exim/local_domains}{yes}{no}}

                                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


This bit is a problem for me, as my configuration includes the following:
| domainlist local_domains = \
|         @[] : \
|         +internal_domains : \
|         +sauce_domains : \
|         +non_sauce_domains : \
|         AUTODNS_DOMAIN : \
|         lsearch;LOCALBATCH : \
|         dsearch;ALIASDIR


So I started looking at adding a "member" expansion to expand.c, which can
look something up as a domain in a domainlist or an address in an address
list.

Unfortunately, I'm finding match.c a little hard to follow, and I'm not
sure which function I should be calling. I'm assuming that it would be
match_isinlist(), and that I'd also need to specify whether it's a hostlist
an addresslist or a domainlist in my expansion.

Would other people consider this type of expansion to be useful (as AFAICT,
it's only useful in this kind of situation)?

MBM

--
Matthew Byng-Maddick         <mbm@???>           http://colondot.net/