| Linode Forum https://forum.linode.com/ |
|
| Train Spamassassin path issue https://forum.linode.com/viewtopic.php?f=11&t=10404 |
Page 1 of 1 |
| Author: | jgjh151 [ Fri Sep 06, 2013 12:50 pm ] |
| Post subject: | Train Spamassassin path issue |
Trying to send the taining commands to spamassassin, but having issue with path to junk storage. Code: sa-learn --no-sync --spam /var/mail/vhosts/mydomain.com/myusername/.INBOX.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: https://library.linode.com/email/postfi ... 0.19-mysql) |
|
| Author: | Main Street James [ Fri Sep 06, 2013 3:07 pm ] |
| Post subject: | Re: Train Spamassassin path issue |
jgjh151, does sa-learn have permissions to access those directories? |
|
| Author: | jgjh151 [ Fri Sep 06, 2013 3:11 pm ] |
| Post subject: | Re: Train Spamassassin path issue |
Main Street James wrote: 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? |
|
| Author: | Main Street James [ Fri Sep 06, 2013 3:42 pm ] |
| Post subject: | Re: Train Spamassassin path issue |
You can check using the 'ls' command: - cd /var/mail/vhosts/mydomain.com/myusername/ - ls -lA You should get a listing of the files along with their permissions, owner and group. |
|
| Author: | Main Street James [ Sat Sep 07, 2013 7:24 pm ] |
| Post subject: | Re: Train Spamassassin path issue |
Yes, sa-learn is a command. I'm not very familiar with SA, so I wasn't sure if you were in an application like you would be if running mysql config commands. Which user are you trying to run the sa-learn commands as? Try one of them preceded by 'sudo': Code: sudo sa-learn --no-sync --spam /var/mail/vhosts/mydomain.com/myusername/.INBOX.JUNK/{cur,new}
|
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|