LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   SpamAssassin setup help (https://www.linuxquestions.org/questions/linux-server-73/spamassassin-setup-help-4175414089/)

robsbots 06-29-2012 10:53 PM

SpamAssassin setup help
 
Hi all.

I have followed Falko's excellent 'Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.10)' tutorial. I now have a mail server up and running serving various domains. Top job Falko. Thanks.

Most of my accounts use IMAP, so the mail stays on the server. What I would like to be able to do is tell SpamAssassin to go though the Junk folders of all the mail accounts on my server and learn what has been tagged as junk/spam, and possibly also go though all read mail and learn what is ham. Is this possible.

I am actually running Ubuntu 11.04 rather than 9.10.
My SpamAssassin is V2.02-beta13, Postfix V2.8.5, Courier Imap 4.8.0-3
I'm not really sure how the mail is stored on the server let alone how to get SpamAssassin to read though it and learn whats spam and whats ham. Its all stored under one user, split in to sub folders for domain, then again for each mail account. Any help on getting this automated via a cron job or similar would be much appriciated.

Thanks

Rob.

bakdong 07-03-2012 12:35 AM

I am using perl to achieve this. The Mail::IMAPClient and Email::Address modules are good for stepping through the folders and checking the message headers - then use system calls to the spamassassin tools to learn or unlearn as appropriate.

robsbots 07-03-2012 08:58 PM

Thats great. Thanks for the info. I do have one question though.

I am marking all my spam with Thunderbird and having it transfer everything to a junk folder on the account. Apart from apearing in the folder, how can I tell its spam. I have looked though a couple of spam emails, marked as such with thunderbird but don't see any x-spam like info in the header. I have also checked two copies of the same email, one marked as spam and one not, and diff reports not difference. How does thunderbird keep track ? Can thunderbird add this info to the headers or does it use a different method to mark the message ? I havn't been able to find any info on this.....

Thanks again for your help.

Rob


All times are GMT -5. The time now is 09:43 PM.