.pdf)
WHM Plugins
| API Version: | 1 - Click here for documentation |
|---|---|
| Syntax: | SpamAssassin::saveconfig( ) |
| Description: | Save SpamAssassin's configuration information. This function requires access to the 'spamassassin' feature. This feature is not available in demo mode. |
| Form Data: | |
| blacklist_from-* (string) | |
| The email address(es) to blacklist. This variable will need to be incremented in order to specify more than one address (e.g., blacklist_from-1, blacklist_from-2). | |
| required_score (integer) | |
| The score above which email messages are considered spam. | |
| score-* (string) | |
| Set specific scores for specific rules. For example: SPAM_RULE 3 3 3 3 - This rule indicates that if SPAM_RULE is tripped, it will add 3 to the score regardless of the configuration. The 1st score is used when both Bayes and network tests are disabled. The 2nd score is used when Bayes is disabled, but network tests are enabled. The 3rd score is used when Bayes is enabled and network tests are disabled. The 4th score is used when Bayes is enabled and network tests are enabled. Setting a rule's score to 0 will disable that rule from running. . | |
| whitelist_from-* (string) | |
| The email address(es) to whitelist. This variable will need to be incremented in order to specify more than one address (e.g., whitelist_from-1, whitelist_from-2*). | |
| Returns: | |
This function does not produce any output.
|
| API Version: | 1 - Click here for documentation |
|---|---|
| Syntax: | SpamAssassin::config( ) |
| Description: | Print SpamAssassin configuration HTML. This function requires access to the 'spamassassin' feature. The function pulls the default values from the global /usr/local/cpanel/etc/spamassassin.options file and the /home/$user/.spamassassin/user_prefs configuration file. |
| Returns: | |
Displays a large chunk of HTML displaying a user's SpamAssassin configuration.
|