Author: Phil Pennock Date: To: Vasiliy G Tolstov CC: exim users Subject: Re: [exim] exim pcre match question
On 2009-11-10 at 18:04 +0300, Vasiliy G Tolstov wrote: > Hello.
> I have this regular expression to check Message-Id header
> (* before @ and two words separated with dot after @)
> 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
You need to wrap the regexp in \N....\N to protect escape sequences
inside it. Otherwise, the "\." is interpreted at the Exim string
expansion layer and becomes just "." in the regexp.
Generally, you can test by starting a test Exim daemon on a different
port, with debugging turned on via -d; you can test the string expansion
with -d+expand for more information. Eg, in one terminal run:
exim -d+expand -oX 26 -bd
and then connect to port 26 in a different window and type/paste in the
SMTP dialogue to send your test message.
This message was posted to the following mailing lists: