Question
How do you make a custom configuration file for SpamAssassin?
Answer
Apache SpamAssassin allows the system administrator to customize how the server processes spam emails. SpamAssassin configuration files are stored in the /etc/mail/spamassassin folder. The spamd service automatically detects new configuration files at startup.
- Access the server's command line as the
rootuser via SSH or Terminal in WHM. -
Create a customization file, such as
custom.cf, in the/etc/mail/spamassassinfolder:# touch /etc/mail/spamassassin/custom.cf
- Add the desired configurations to the file using your preferred text editor.
-
Check the rule syntax for errors.
# /usr/local/cpanel/3rdparty/bin/spamassassin --lint
-
Restart the spamd service to apply the change:
# /usr/local/cpanel/scripts/restartsrv_spamd
Comments
0 comments
Article is closed for comments.