[exim] helo regexp checks

Etusivu
Poista viesti
Vastaa
Lähettäjä: Dudi Goldenberg
Päiväys:  
Vastaanottaja: exim-users
Aihe: [exim] helo regexp checks
Hello list,

I'm in the middle of configuring my first exim installation (Debian lenny) - I'm after two goals.

One is to add some regexp checks to exim's HELO/EHLO checks, I have the following:

acl_check_helo:
  accept  hosts = @[] : @
        endpass
  deny message = FQHN Required.
    condition = ${if ! match {$sender_helo_name}{\N^[^.].*\.[^.]+$\N}}
  deny message = FQHN required. Address literals prohibited by local policy.
    condition  = ${if match {$sender_helo_name} {^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\$|^\[[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+\]\$} {yes}{no}
    accept

I'm trying to add some regex checks like:
/^dsl.*\..*\..*/i       553 Rejected.
/[ax]dsl.*\..*\..*/i    553 Rejected.

The other thing is bypassing these checks for authenticated users.

Authenticated users submit mail via the submission port (587) but I see the mail going through the EHLO/HELO checks.

TIA

Dudi Goldenberg
CTO
Kolcore Ltd.
Registered Linux user #79506

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.21.7/1330 - Release Date: 3/15/2008 14:36