Thanks for the heads up. I will do that.
Regards;
Frank

-----Original Message-----
From: owner-postfix-us...@postfix.org
[mailto:owner-postfix-us...@postfix.org] On Behalf Of Viktor Dukhovni
Sent: Wednesday, October 7, 2020 3:09 PM
To: postfix-users@postfix.org
Subject: Re: Forward email based on Regexps

On Wed, Oct 07, 2020 at 02:44:47PM -0400, Frank DiGennaro wrote:

> I apologize. I'm an idiot. I thought that I was showing you what I 
> did. I showed how I defined the virtual_alias_maps in man.cf, added 
> the regex's into the file 'virtual_users', and ran several tests such 
> as 'postmap -q 5555555...@mobilepbx.net 
> pcre:/etc/postfix/virtual_users'. What am I not showing? I appreciate all
your help.

Context matters.  Piecing the puzzle together from isolated fragments of
separate messages is too much to expect of those willing and able to help.

Therefore, you may need to repeat yourself, by posting a single message,
containing all the relevant information, that is, per:

    http://www.postfix.org/DEBUG_README.html#mail

    - Output of: postconf -nf 
    - Output of: postconf -Mf
    - Logs showing what happened when you tested
    - A brief note stating what you expected instead

A quick glance over the thread, shows that:

    - You have wildcard rules, keep in mind that virtual expansion
      is recursive, and the RHS of each rule is subject to further
      lookups until either there's no match, or the result is the
      same as the input.

    - You don't qualify your virtual(5) RHS values with an explicit
      domain.  That's generally unwise.  They'll get implicitly
      qualified with $myorigin, and perhaps then match some other
      pattern in the PCRE table?

    - Your regular expressions are sloppy, missing "^" and "$"
      anchors, fail to escape literal "." as "\.", ... While
      it may be simple to write regular expressions that match
      a particular input pattern, it is more difficult to write
      *correct* regular expressions that match *only* the desired
      pattern and not also lots of other patterns that should not
      be matched.

    - You posted no logs that showed the unexpected results, with
      a brief explanation of what you expected instead.

-- 
    Viktor.

Reply via email to