dagservice
Verified User
- Joined
- Aug 27, 2015
- Messages
- 11
Good morning,
I used the instructions over here to create a script to train spamassassin every once in a while. However, i noticed that the training doesn't appear to be very effective.
On further investigation, i noticed that i am running the script as the user running the domain generating the training data (admin in my case, as per the instructions
Doesn't that mean that spamassassin will be looking for training data in /root/.spamassassin/bayes ?
If so, what is the recommended way of doing this? Running the cron job as root?
I used the instructions over here to create a script to train spamassassin every once in a while. However, i noticed that the training doesn't appear to be very effective.
On further investigation, i noticed that i am running the script as the user running the domain generating the training data (admin in my case, as per the instructions
), which makes the (default) path used for trainging data /home/admin/.spamassassin/bayes. However, since spamassassin appears to be running as root:Log into DirectAdmin as username and go to the cronjobs section.
Code:
root@vps1:/# ps -Af | grep spam
root 14360 1 0 06:32 ? 00:00:04 /usr/bin/spamd --pidfile /var/run/spamd.pid -d -c -m 15 -s /var/log/exim/spamd.log --ipv4
root 14389 14360 0 06:32 ? 00:00:11 spamd child
root 14391 14360 0 06:32 ? 00:00:00 spamd child
root 28152 1238 0 11:53 pts/0 00:00:00 grep --color=auto spam
If so, what is the recommended way of doing this? Running the cron job as root?