virtualmin / virtualmin-gpl

Virtualmin web hosting control panel for Webmin
https://www.virtualmin.com
GNU General Public License v3.0
331 stars 102 forks source link

SpamAssassain - Header and body test - Validate record with javascript before submission #959

Open shoulders opened 1 week ago

shoulders commented 1 week ago
SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.5
Usermin version 2.102
Virtualmin version 7.20.2 Pro
Theme version 21.20.7
Apache version 2.4.52
Package updates 49 package updates are available

Background

The issue

You are able to make and submit rules that do no follow the required convention

https://spamassassin.apache.org/full/3.1.x/doc/Mail_SpamAssassin_Conf.html

Test names must not start with a number, and must contain only alphanumerics and underscores. It is suggested that lower-case characters not be used, and names have a length of no more than 22 characters, as an informal convention. Dashes are not allowed.

Proposed solution

Use JavaScript to enforce the correct syntax.