Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

This function modifies the minimum Apache SpamAssassin™ spam score.


Warning
titleWarning:

Include Page
LIB:_cPanelAPI1NewerFunctions
LIB:_cPanelAPI1NewerFunctions

  • UAPI (recommended) Email::change_mx
    Excerpt Include
    UAPI Functions - Email::change_mx
    UAPI Functions - Email::change_mx
    nopaneltrue
  • cPanel API 2 Email::changemx
    Excerpt Include
    cPanel API 2 Functions - Email::changemx
    cPanel API 2 Functions - Email::changemx
    nopaneltrue


Panel
bgColor#F2F2F2
borderStylenone

Examples 


Panel
bgColor#FFFFFF
borderStylenone


Expand
titleLiveAPI PHP Class


Code Block
languagephp
linenumberstrue
$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$set_spam_score = $cpanel->api1('Email', 'addspamfilter', array('8.0') ); // Call the function.

Include Page
LIB:_LiveAPIPHPLink
LIB:_LiveAPIPHPLink


Expand
titleLiveAPI Perl Module


Code Block
languageperl
linenumberstrue
my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $set_spam_score = $cpliveapi->api1('Email', 'addspamfilter', ['8.0'] ); # Call the function.

Include Page
LIB:_LiveAPIPerlLink
LIB:_LiveAPIPerlLink

 


Expand
titlecPanel Tag System (deprecated)

Include Page
LIB:_cPanelTagsWarning
LIB:_cPanelTagsWarning

Code Block
languagetext
<cpanel Module="Email::addspamfilter( $FORM('required_score') )">



Expand
titleCommand Line


Code Block
cpapi1 --user=username Email addspamfilter 8.0

Include Page
LIB:_UAPICLINote
LIB:_UAPICLINote

 


Expand
titleOutput (none)

This function does not return output.



 

Parameters

ParameterTypeDescriptionPossible valuesExample
required_scorestring

The new spam score.

If you do not specify a value, the function resets the spam score to the default value (5.0).

A positive integer.

Note
titleNote:

The default value, 5.0, is an aggressive spam score.

The lower the spam score, the more likely it is that Apache SpamAssassin will label messages as spam.

Some systems may wish to use a more lenient spam score (for example, 8.0 or 10.0). 


8.0

Returns

This function does not return output.