Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Sep 06, 2013 12:50 pm 
Offline
Senior Member

Joined: Thu Jun 13, 2013 7:32 am
Posts: 79
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}
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: https://library.linode.com/email/postfi ... 0.19-mysql)


Top
   
PostPosted: Fri Sep 06, 2013 3:07 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
jgjh151, does sa-learn have permissions to access those directories?


Top
   
PostPosted: Fri Sep 06, 2013 3:11 pm 
Offline
Senior Member

Joined: Thu Jun 13, 2013 7:32 am
Posts: 79
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?


Top
   
PostPosted: Fri Sep 06, 2013 3:42 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
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.


Top
   
PostPosted: Sat Sep 07, 2013 7:24 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
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}


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
RSS

Powered by phpBB® Forum Software © phpBB Group