#1  
Old 3rd November 2008, 18:55
bswinnerton bswinnerton is offline
Senior Member
 
Join Date: Jul 2007
Location: Connecticut, US
Posts: 502
Thanks: 51
Thanked 17 Times in 14 Posts
Default Cron to Learn Spam

Hello,

I'm trying to set up a cron tab to run so that it reads everyone's "Junk" folder and then runs the command:

Code:
/home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-learn --spam
And then once it is done, removes the emails from the junk folder.

However, What I am wondering, is there any variable or way to specify all email users' folders?

For example:

Code:
/home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-learn --spam /var/www/web*/user/*/Maildir/.Junk/cur
Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 3rd November 2008, 19:01
bswinnerton bswinnerton is offline
Senior Member
 
Join Date: Jul 2007
Location: Connecticut, US
Posts: 502
Thanks: 51
Thanked 17 Times in 14 Posts
Default

Falko, I just read on another post you said this:

Quote:
You can either create a cron job for each user, or you create a sript run by a root cron job that parses /etc/password and then performs the tasks by going through a loop.
How would I go about that? Or is there an easier way of doing it?

Thanks
Reply With Quote
  #3  
Old 4th November 2008, 14:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by bswinnerton View Post
However, What I am wondering, is there any variable or way to specify all email users' folders?

For example:

Code:
/home/admispconfig/ispconfig/tools/spamassassin/usr/bin/sa-learn --spam /var/www/web*/user/*/Maildir/.Junk/cur
Thanks!
I think this could work. I'd try it.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 4th November 2008, 15:55
bswinnerton bswinnerton is offline
Senior Member
 
Join Date: Jul 2007
Location: Connecticut, US
Posts: 502
Thanks: 51
Thanked 17 Times in 14 Posts
 
Default

perfect! it worked!

Thanks Falko
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
email spam filter options the_spy Feature Requests 1 7th September 2008 17:04
Ubuntu 8.04 Spamsnake - all SA scores 0.00 Thomas_Powers HOWTO-Related Questions 23 24th June 2008 17:37
postqueue -p show lots of spam mails sent to system users tom Installation/Configuration 6 29th April 2008 13:18
Redirect Postfix Spam TimmBo Server Operation 6 5th March 2008 17:08
In ISPconfig whitelist but still seen as spam edge Installation/Configuration 12 5th September 2007 00:30


All times are GMT +2. The time now is 18:45.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.