Train Spamassassin path issue
sa-learn --no-sync --spam /var/mail/vhosts/mydomain.com/myusername/.INBOX.JUNK/{cur,new}
sa-learn --no-sync --spam /var/mail/vhosts/mydomain.com/myusername/.JUNK/{cur,new}
sa-learn --no-sync --spam /var/mail/vhosts/mydomain.com/myusername/.Inbox.Junk/{cur,new}
sa-learn --no-sync --spam /var/mail/vhosts/mydomain.com/myusername/.Junk/{cur,new}
I always get: unable to open XXX No such file or directory. I can cd to /var/mail/vhosts/mydomain.com/myusername/ and ls to see new, cur and tmp.
What am I doing wrong?
(Used this to set up email a while ago:
4 Replies
@Main Street James:
jgjh151, does sa-learn have permissions to access those directories?
Thats a good question. I don't remember adding that user to those folders in the process. How should I go about checking that and then doing it?
cd /var/mail/vhosts/mydomain.com/myusername/
ls -lA
You should get a listing of the files along with their permissions, owner and group.
Which user are you trying to run the sa-learn commands as? Try one of them preceded by 'sudo':
sudo sa-learn --no-sync --spam /var/mail/vhosts/mydomain.com/myusername/.INBOX.JUNK/{cur,new}