Introduction
The steps below cover how to enable Spam Box from the command line.
Procedure
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
- Run the following API command to enable the user-configurable Spam Box option.
whmapi1 set_tweaksetting key="skipspambox" value="0"
- Run the following command to enable Spam Box on a cPanel user account.
uapi --user=$username Email enable_spam_box
Please note that $username must be replaced with the cPanel username. - Run the following command to verify that Spam Box was enabled for the cPanel account.
uapi --user=$username Email get_spam_settings
Please note that $username must be replaced with the cPanel username.
Additional resources
Enable spam box filtering for cPanel account
Return email account Apache SpamAssassin settings