Use PCRE for alias regular expressions instead of the basic type#751
Merged
johansmitsnl merged 1 commit intodocker-mailserver:masterfrom Dec 7, 2017
Merged
Conversation
Contributor
|
Could you add a test to verify the change works and keeps working with future changes? |
Contributor
|
Don't want to rush you but is there any progress? |
Contributor
|
Thanks for the contribution |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I spent quite a while trying to set up an alias in
config/postfix-regexp.cflike this:I wanted the client to recieve mail for a couple of users @customer.com and everything else to be sent to me so I can deal with maintenence stuff. The negative-lookahead regular expression seemed to be the solution but I couldn't get Postfix to understand it.
It turns out Postfix has 2 regular expression implementations denoted by the prefixes
regexp:andpcre:in config files. Perl-compatibe regular expressions (PCRE) seem to be the main implementation wherever I've used them before, however the Postfix config here uses the basic type by default.I am currently overriding by putting the following in
config/postfix-main.cfbut I think it would save people a lot of trouble ifpcre:was enabled by default for aliases.