On 2022-04-10 at 14:27:33 UTC-0400 (Sun, 10 Apr 2022 14:27:33 -0400)
Greg Klanderman <g...@klanderman.net>
is rumored to have said:

Hi all,

Quick question, what is the correct syntax to match an empty sender in
a hash: sender access map (i.e. check_sender_access)?

Somewhat related, if I have a regexp: map (header checks), like so:

/^Subject:.*foo bar/ REJECT
/^Subject:.*foo baz/ REJECT

when it is postmap'd, it warns about a "duplicate entry", because it
is apparently seeing the first (key) token end with space.

Right, because you do not need to run 'postmap' on regex or pcre maps. The text format ios what Postfix uses for those types.

(Yes, I know I could combine the two lines)

Is this the correct syntax for these two regexps?  Or is the regexp
really being treated as ending at the first space?  If I'm using the
correct syntax, it seems the postmap warning is spurious; how can I
inhibit it?

Simple: do not run postmap on regex, pcre, or cidr tables.

--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Not Currently Available For Hire

Reply via email to