SpamAssassin + IMAP + Mail.app

Peter Rukavina

I don’t know why I didn’t think of this earlier. My email is stored on an IMAP server and I primarily used Apple’s Mail.app client to access it there. I’ve got Mail.app set up to store mail it identifies as “Junk” on the server, but until today I wasn’t harnessing Mail.app’s junk-fighting skills to make SpamAssassin smarter.

All I needed to do to make this happen was to set up a cron job to have SpamAssassin learn that all the mail in the Junk folder was spam:

/usr/bin/sa-learn --spam /home/peter/Maildir/.Junk/cur

This simply tells the SpamAssassin “learning” application, sa-learn, to take all the mail in my Junk folder and learn that it’s spam. I run it one a day.

Comments

Submitted by til on

Permalink

Great idea, thanks. Setting this up for myself right now. I haven’t run sa-learn in a long time, and recently the amount of spam became really annoying. Let’s hope that helps.

On the other hand, I do like to listen to spamradio.com sometimes ;)

Add new comment

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /nowlook at my bio, read presentations and speeches I’ve written, or get in touch (peter@rukavina.net is the quickest way). You can subscribe to an RSS feed of posts, an RSS feed of comments, or receive a daily digests of posts by email.

Search