You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Where do I configure spamassassin in Mountain Lion Server?

Where, in Mountain Lion Server, can I configure SpamAssassin?


I've tried modifying /Library/Server/Mail/Config/spamassassin/local.cf, but the changes I made there don't have any effect.

Mac mini, Mac OS X (10.7)

Posted on Aug 5, 2012 8:51 PM

Reply
74 replies

Aug 15, 2012 7:29 PM in response to Brian Kendig

I noticed the same issue with the slider for scoring that appears to be inversed. I assumed that it was by design. I can now confirm that the it does in fact appear to be a bug. I've chased my tail for a week, thinking that I had permissions wrong somewhere or that I'd modified a setting, rendering amavisd non-functional. When I finally got it going by modifying the configuration files manually. Upon testing with some fake spam signatures, I found that the thresholds were inversed. Thanks Apple. I now know more than I ever wanted to know about spamassassin. Please keep me informed of your progress. I'm sure to need to add some whitelists, etc. If I get rules up and running, I would gladly share syntax.


-BK

Aug 15, 2012 10:01 PM in response to niwrik

Hi guys - the best way to do it is to add soft whitelist scores to /:L/Server/Mail/Config/amavisd/amavisd.conf

(Because amavis-new may disregard spamassasson rules)


Look for this line


# read_hash("/Library/Server/Mail/Data/scanner/amavis/sender_scores_sitewide"),

and directly nbelow that you will see a list of email addresses with NEGATIVE scores beside them.


'nobody@cert.org' => -3.0,

'cert-advisory@us-cert.gov' => -3.0,

'owner-alert@iss.net' => -3.0,


add yours to the bottom of this list comma-separated


i.e.


'.myschool.edu' => -5.0,

'*@newsletter.nba.com' => -5.0,


The more negative a number, the more STRONGLY whitelisted the address or domain.


Ditto Positive numbers for soft blacklist.


Hope that helps

cheers

Gerry

Oct 9, 2012 12:40 PM in response to Brian Kendig

I can confirm the junk filter slider is still reversed in 10.8.2 and 2.1.1 of Server Admin - so much for apple fixing it! The spam filter set up un MLS Server is very unstable - I have enabled Administrator notification of spam which seems to stop Spamassassin modifying the subject of the affected email and AMVISD then picks up the forwarded spam to the Adminstrator as a Virus email and deletes it! And it is also identified as spam when it is forwarded by root.


PLEASE APPLE can you improve the mail handling of MLS Server back to SLS standards! Or does someone have a good configuation guide on how to configure the MLS mail architecture to actually work and stop spam?

Oct 9, 2012 2:02 PM in response to Mark23

Many thanks Mark - I will see if it improves the problem.


Would you know if it is possible to forward spam to a junk account under MLS (as was possible with SLS). I have tried changing the Spam_Action command in postfix - options seem to be delete or deliver. Deliver to quarantine or admin would be helpful if possible?


I have a lot of iOS devices deployed - without client junk mail filters - so need to be as strict and accurate as possible with the server side filtering. Having a 'catch' for wrongly tagged spam was helpful on SLS so I could o back and add problem senders to the whitelists and retrieve the email from a holding account. Is there any way to replicate this with MLS?

Oct 9, 2012 6:13 PM in response to angryiphoneuser

Following redshift82r's instructions posted elsewhere in the forums, I loaded Roundcube on our MLS and added the managesieve plug in. Once everything was working, I was able to setup a rule to move messages with the string ***JUNK MAIL*** in the subject to the junk folder. This seems pretty effective at keeping the inboxes clean, while allowing end users to check their own junk folders so long as they are using IMAP.


I'm real green still, so I'm looking at the following (over the next several months):


1) Default templates for Roundcube mailboxes (default folders) and default manageseve filters

2) Updating whitelists/blacklists with some script (maybe called from cronjob) to allow users to put false positives in one folder and spam in another to train spamassassin <-- this might turn out to be a pipe dream

3) More customization in spamassasin rules to automaticaly delete/bounce spam with certain characteristics


So far, so good, though. Got a snapin running that allows carddav sync with MLS address books. Looking at getting calendar snapin to work as well.


I am getting e-mails from spamassassin RE: blocked spam and blocked viruses. Since 10.8.2, there are additional messages sent when the filter blocks a virus...

Where do I configure spamassassin in Mountain Lion Server?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.