[exim] exim pcre match question

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Vasiliy G Tolstov
Dátum:  
Címzett: exim users
Tárgy: [exim] exim pcre match question
Hello.
I have this regular expression to check Message-Id header
[\S]+@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?

(* before @ and two words separated with dot after @)

  deny          condition               = ${if match
{$h_Message-Id:}{[\S]+@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?} {1}}
                message                 = X-ACL-DATA: Invalid Message-Id
                log_message             = X-ACL-DATA: Invalid Message-Id


But if a send e-mail with aaa@test and aaa@??? all messages passed
by this acl and delivery.

pcretest work's fine with this expression


--
Vasiliy G Tolstov <v.tolstov@???>
Selfip.Ru