Regex delivery
Hello Everyone,
I need to add a domain-wide email suffix filter.
I've got most part working, but the delivery part will not work.
The regex is:
To matches: #.+@domain.tld
Deliver to:
email@domain.tld[/EMAIL]
I want this to be
Deliver to:
*part before #*@domain.tld
I have made a regex that removes the # and the part between the @ but it gives a error at delivery:
I guess that the deliver to: part doesn't work with regex? You can see it work here: regex101.com/r/zF0wB3/8 Regex101 - online regex editor and debugger
error in filter file: malformed address "#(.*?)(?:(?!@).)*" in filter file: missing or malformed local part (expected word or "<")I guess that the deliver to: part doesn't work with regex? You can see it work here: regex101.com/r/zF0wB3/8 Regex101 - online regex editor and debugger
-
Hello, You may find the discussion on the following thread helpful: Blocking Entire domains .work, .click, .science, .eu Thank you. 0 -
Hello, You may find the discussion on the following thread helpful: Blocking Entire domains .work, .click, .science, .eu Thank you.
Hello Michael, Unfortunately this does not have a fix for me :/ I just need to be able to "insert" a variable (taken from regex) to the "Deliver to" part in the filter, I hope this is possible. Thanks0 -
I just need to be able to "insert" a variable (taken from regex) to the "Deliver to" part in the filter, I hope this is possible.
That's not possible without root access to the server to setup a custom Exim system filter. Regular expressions are only supported in the filter rule itself with the "matches regex" and "does not match" operators when using cPanel to create a filter. Thank you.0 -
That's not possible without root access to the server to setup a custom Exim system filter. Regular expressions are only supported in the filter rule itself with the "matches regex" and "does not match" operators when using cPanel to create a filter. Thank you.
Hello Michael, What would the settings be? I work at the hosting company and will have to ask tech if it's possible for them to set it up for me. Thanks :)0 -
Hello, Assistance with the development of a custom regular expression is outside the scope of support we provide, but the following document explains how to setup a custom exim system filter: How to Customize the Exim System Filter File - cPanel Knowledge Base - cPanel Documentation The following thread is also helpful for some proof-of-concept examples: Need to filter ALL email Thank you. 0
Please sign in to leave a comment.
Comments
5 comments