Viktor Dukhovni <postfix-users <at> dukhovni.org> writes:
>
> On Mon, Mar 25, 2013 at 04:35:48PM +0100, Fabio Sangiovanni wrote:
>
> > I'm trying to figure out how case sensitivity works in a
> > check_recipient_access regexp table (Postfix 2.6.6).
>
> Try the documentation:
>
> http://www.postfix.org/regexp_table.5.html
> http://www.postfix.org/pcre_table.5.html
>
> ...
>
> By default, matching is case-insensitive, and newlines are
> not treated as special characters. The behavior is con-
> trolled by flags, which are toggled by appending one or
> more of the following characters after the pattern:
>
> i (default: on)
> Toggles the case sensitivity flag. By default,
> matching is case insensitive.
>
> > /etc/postfix/check_recipient_access.regexp:
> > /^test <at> domain\.tld$/i REJECT wrong format
>
> See above and head the word *toggles* plus the default setting.
>
Hi, thanks for your answer.
I'm sorry but I can't get the point here.
I *want* case sensitive matching. To me, the manual says that, due to
the fact
that insensitive matching is on by default, one should append the flag
to the pattern
in order to "toggle the behaviour", that is: to turn insensitive
matching off.
Further information:
The command:
postmap -q 't...@domain.tld'
regexp:/etc/postfix/check_recipient_access.regexp
returns: REJECT wrong format
while:
postmap -q 't...@domain.tld'
regexp:/etc/postfix/check_recipient_access.regexp
returns no output.
This behaviour is correct, but I can't get it using the restriction in
postfix.
Thanks,
Fabio