rspamd blacklist/whitelist to use ^$ string termination

Version 1.61.4

Bugfix
Finished

Relating to the addition of wildcards to SpamAssassin/Rspamd: https://www.directadmin.com/features.php?id=2582 If you were to be blacklisting: *.com it would imply that anything@something.com 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!