How do I manually modify the SpamAssassin Black and White List file?
Editing the SpamAssassin White and Black lists:
If you would like to manually modify the white/black list file, the location of the configuration file is:
/.spamassassin/spamassassin_blackwhite.inc
You may edit this file using file transfer tools such as FTP or File Manager. An example of such configuration file is available at the bottom of this page.
In order to activate a web-based editor that provides the ability to manage those lists through a web-based interface, please make sure that the PHP application is installed on your site (please refer to your control panel). After installing the PHP application, click the SpamAssassin link again from the control panel and that would open the editor.
Note: It is possible that PHP is not available as part of your service package and not available for you in the control panel. In this case, please use another method to manage this configuration file as mentioned above.
White list:
White list contains emails that will NEVER be tagged as Spam if they appear in the "From:" of the email.
The list may contain simple email addresses, such as " friend@somewhere.com ", or wildcards such as " *@isp.com " (accept all emails from the isp.com domain) or " *.domain.net " (accept emails from any subdomain of domain.net).
Black list:
Black list contains emails that will ALWAYS be tagged as Spam if they appear in the "From:" of the email. The list may contain simple email addresses, such as " friend@somewhere.com ", or wildcards such as " *@isp.com " (do not accept all emails from the isp.com domain) or " *.domain.net " (do not accept emails from any subdomain of domain.net).
An example of the configuration file:
whitelist_from friend@somewhere.com
whitelist_from *@somewhere.com
blacklist_from *@spammers.com
blacklist_from *.spam.com
To add a new email to the white list, add the following line to the file:
whitelist_from EMAIL_ADDRESS
Where EMAIL_ADDRESS is the email address you would like to add.
To add a new email to the black list, add the following line to the file:
blacklist_from EMAIL_ADDRESS