This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SMTP Regex

I'm trying to add a regex to the Astaro SMTP proxy configuration to reject any mail with an IMG tag.  The Regex I tried was:

s//i

I can't seem to figure out why this won't match.  Furthermore, it seems that the Astaro web interface can't correctly display the above regex in the list of regex because it tried to expand the IMG tag in the regex.  Checking the exim.conf however reveals it saves the correct regex.

Anyone have any suggestions on the above regex?

Paul 


This thread was automatically locked due to age.
Parents
  • I'm not sure if \w is supported; second off, I suspect your "or" expression is off.

    This will take forever to do it the way you are. Log on to console and pass expressions to sed to see what will work. Regexps almost always require such trial interactive runs.

    Also, make sure the parser is not case sensitive...
Reply
  • I'm not sure if \w is supported; second off, I suspect your "or" expression is off.

    This will take forever to do it the way you are. Log on to console and pass expressions to sed to see what will work. Regexps almost always require such trial interactive runs.

    Also, make sure the parser is not case sensitive...
Children
No Data