rspamd blacklist/whitelist to use ^$ string termination

Version 1.61.4


Relating to the addition of wildcards to SpamAssassin/Rspamd: If you were to be blacklisting: *.com it would imply that would be blocked, which it was. The issue is that it was adding it to the rspamd configs as: from = “/.*\.com/” which would have also matched somethingcom@something.else, because the dot needed to be double escaped, and the start/end of the string defined. This change now swaps periods with \\. and adds ^ and $ to the start/end of the string, eg: from = "/^.*\\.com$/"

Interested to try DirectAdmin? Get a 30-day Free Trial!