[exim] lsearch expression for check_helo ACL?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Christian Schmidt
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] lsearch expression for check_helo ACL?
Hello exim-users,

I've just been struggling with the syntax aof a condition for my
check_helo acl. What I'm using now is:

begin acl

check_helo:
  # If remote host greets with an IP address, reject connection:
  deny    message = REJECTED - Bad HELO - IP address not allowed ($sender_helo_name).
        condition = ${if isip {$sender_helo_name}{true}{false}}


  # Deny if the HELO pretends to be this host:
  deny    message = You pretend to be $sender_helo_name, but that's me.
        condition = ${if or { \
                {eq {${lc:$sender_helo_name}}{server.linau.de}} \
            {eq    {${lc:$sender_helo_name}}{www.linau.de}} \
            {eq {${lc:$sender_helo_name}}{localhost}}}{true}{false}}
  # Otherwise accept connection:
  accept


As have listed all local domain names in a file using
domainlist local_domains = /etc/exim4/domainfiles/local-domains.txt
I'm wondering how to include either the local_domains variable or the
local-domains.txt file in my condition expression.
I've already tried constructing an expression using "lsearch", but
unfortunately, I'm not yet familiar enough with the corresponding
syntax.

I appreciate any help - mabe someone can just point me to the
corresponding chapter of the exim specs...

Regards & thanks in advance,
Christian Schmidt
-- 
Das Internet - "Tummelplatz von Kriminellen der übelsten Sorte"
        -- Walter Zuber (SPD)