Skip navigation

Unhappy with OS X Server handling of email spam

2172 Views 4 Replies Latest reply: Feb 16, 2013 10:02 AM by Thor HoG RSS
Brian Kendig Level 2 Level 2 (170 points)
Currently Being Moderated
Aug 12, 2012 1:45 PM

I'm unhappy with the way that OS X Server (on Mountain Lion) handles email spam.

 

What I *want* is to be able to set some SpamAssassin rules, and then to have the mail server refuse spam emails (not accept and put into Junk, but refuse to accept them in the first place). I used to do this with Exim and the sa-exim tool. In 10.7 I decided to switch to the built-in mail server, but that doesn't offer this functionality.

 

I would settle with being able to set some SpamAssassin rules and then have the server filter junk email into my Junk folder. 10.7 Server used to do this; I had to enable webmail and turn on the setting in there, and it would configure Pigeonhole (a Dovecot plugin) to put spam into the Junk folder. 10.8 server no longer offers webmail and no longer comes with Pigeonhole. I can add it myself with MacPorts, but I don't understand how to configure it on OS X Server.

 

So I have to settle for my OS X Server delivering all junk emails to my inbox, where then I have to delete them one-by-one on my iPhone. I could leave a Mac on at home all day to do the spam filtering, but that just seems silly.

 

If anyone could tell me how to set up Pigeonhole on OS X Server (10.8) to put my spam into a folder - or even how to set up Postfix to refuse spam in the first place - I would be very, very happy.

Mac mini, Mac OS X (10.7)
  • redshift82r Calculating status...
    Currently Being Moderated
    Aug 12, 2012 3:20 PM (in response to Brian Kendig)

    Hi Brian

     

    See https://discussions.apple.com/thread/4153247?start=0&tstart=0

     

    For details on how to install webmail and activate filters.

    Create a folder called Junk and use filters to move messages marked Junk Mail into that folder.

     

    Let me know if you have problems and I'll help.

  • redshift82r Level 2 Level 2 (325 points)
    Currently Being Moderated
    Aug 12, 2012 6:47 PM (in response to Brian Kendig)

    The issue you've run into is that postfix uses amavisd as its post queue (I.e. received and accepted by smtp) filter.

    If you don't want to set server-side rules ( easiest way is still webmail / Managesieve plugin) to auto move junk mail into a junk folder because of security concerns, then there are other options.

     

    Most of the logic for spam checking is done by amavis.  It calls as subprocessess spamassassin and clam av.

    Changes you make in spamassassin conf are used by spamassassin but amavisd may overrule spamassassin.

    So your options are:

     

    1. Make webmail a local intranet access only - I.e. use a custom port 8xxx and don't open that to the Internet via your router or firewall rules.

     

    2. Quarantine spam to a new mailbox so it doesn't get delivered to the user.

     

    I haven't done this but, if you have a look at http://wiki.apache.org/spamassassin/IntegratedInPostfixWithAmavis ,

    It has some instructions on how to adjust the amavisd conf ( path to server/mail/config/amavisd/amavisd.conf ) , set up a new mailbox and quarantine the spam to there. This saves you having to set up webmail /Managesieve plugin, and means that you don't lose any mail incorrectly classified, although you will need to clean it out from time to time.

     

    If you have a lot of users, number 1. Is a better fit for an administrator because the user can manage their own spam.

     

    At the moment I'm grappling with how to get the child-process spamassassin to look up user-managed auto white lists and prefs set through webmail sauserprefs plugin.  Still a work in progress.......

     

    Hope that helps.

  • Thor HoG Level 1 Level 1 (0 points)
    Currently Being Moderated
    Feb 16, 2013 10:02 AM (in response to redshift82r)

    redshift82r wrote:

     

    I haven't done this but, if you have a look at http://wiki.apache.org/spamassassin/IntegratedInPostfixWithAmavis ,

    It has some instructions on how to adjust the amavisd conf ( path to server/mail/config/amavisd/amavisd.conf ) , set up a new mailbox and quarantine the spam to there. This saves you having to set up webmail /Managesieve plugin, and means that you don't lose any mail incorrectly classified, although you will need to clean it out from time to time.

     

    Hey Redshift82r - I know you said you've not tried the process described in the link, but I thought I would save folks the time and let them know this doesn't apply to OSX Server 10.8.2.  It's a rather old doc (2009) and refers to some dead soldiers.    I also briefly looked at the other link for Webmail which I'll look at in more details.

     

    Funny thing is that the link you provide above DOES indeed have references to some config options *already* in ML Server.  So while the exact syntax won't work, the fact the master.cf has the optoins already set (and active, not #'d) is rather heartening.  That being so, I can't help but think the groundwork has already been laid and other solutions (like webmail) aren't necessary.  I'll make this work somehow and I'll post back.

     

    Anyway, thanks for that referece because it put me on the right track even though it in itself doesn't work for ML.

     

    t

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.