Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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.
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.....