Introduction
Here we'll provide the instructions for changing the logging location for spamd (SpamAsassin).
Procedure
The spamd configuration file may be located here at /usr/local/cpanel/3rdparty/bin/spamd. It is recommended 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:
my $log_facility = $opt{'syslog'} || 'mail';
The following is an example, changing the log location to '/var/log/spamlog':
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 in order to exclude the '/usr/local/cpanel/3rdparty/bin/spamd' file from future updates.