Question
How do you change the logging location for SpamAssassin?
Answer
The spamd configuration file may be located here at /usr/local/cpanel/3rdparty/bin/spamd. It is recommended that a backup of the file be created:
# cp -v /usr/local/cpanel/3rdparty/bin/spamd{,.backup}
Once the backup has been created, you are free to edit the file. You may search the file for the following line:
CONFIG_TEXT: my $log_facility = $opt{'syslog'} || 'mail';
The following is an example, changing the log location to /var/log/spamlog:
CONFIG_TEXT: my $log_facility = $opt{'syslog'} || '/var/log/spamlog';
After your changes have been saved, the exim service will need to be restarted for them to take effect:
# /scripts/restartsrv_exim
You may follow the steps provided within this article to exclude the /usr/local/cpanel/3rdparty/bin/spamd file from future updates:
Comments
0 comments
Article is closed for comments.