Skip navigation

Junk mail not being moved to quarantine account

893 Views 6 Replies Latest reply: Mar 18, 2013 2:13 PM by Munger1 RSS
Munger1 Calculating status...
Currently Being Moderated
Mar 18, 2013 9:33 AM

Having trained my spam filter, I find that spamassassin is correctly identifying over 95% of junk mail, and is marking it as such by rewriting the subject. However, it is still being delivered to my inbox despite having the following settings :-


mail:postfix:spam_quarantine = ""

mail:postfix:spam_subject_tag = "***JUNK MAIL*** "

mail:postfix:spam_notify_admin_email = ""

mail:postfix:black_hole_domains:_array_index:0 = ""

mail:postfix:spam_scan_enabled = yes

mail:postfix:virus_quarantine = ""

mail:postfix:spam_rewrite_subject = yes

mail:postfix:virus_notify_admin_email = ""

mail:postfix:spam_notify_admin = no

mail:postfix:spam_action = "deliver"


Do I need to change mail:postfix:spam_action or some other setting to have the junk sent to instead of the user's inbox? Even better would be a global setting to send the spam to each user's 'Junk' folder, but for now a global quarantine account is fine.


**** UPDATE ***

I just checked in /Library/Server/Mail/Config/amavisd/amavisd.conf and find that the relevant lines are commented out. I could edit this manually, but suspect that some other setting is required to  enable these. Any ideas?


#$virus_admin              = '';  # notifications recip.

#$spam_admin               = '';

#$spam_quarantine_to       = '';

#$banned_quarantine_to      = '';

#$virus_quarantine_to      = '';

iMac, OS X Server, Mountain Lion Server 10.8.3
  • UptimeJeff Level 4 Level 4 (3,390 points)
    Currently Being Moderated
    Mar 18, 2013 12:57 PM (in response to Munger1)

    You are looking in the right place.


    There are 3 levels of action


    low-score:  delivered to inbox

    med-score:  default is **JUNK MAIL** added to subject and still delivered to your inbox

    high-score:  can be discarded or quarantined (and other options available)

    sky-high-score:  setting is optional, if mail hits this level then its not quarantined


    What I like to do is enable + addressing and set it up like this:


    low-score: delivered to user inbox

    med-score:  delivered to user's Junk folder (not their inbox)

         this allows the user to scan their junk)

    high-score: either discard or route to a quarantine account

    sky-high: always discarded


    You can tweak these levels in amavisd.conf


         less than tag2 level is a low score

    $sa_tag2_level_deflt = 3.5;

         between tag2 and kill_level_deflt is medium

    $sa_kill_level_deflt = 6.5;

         above kill_level_deflt is high

    $sa_quarantine_cutoff_level = 18;

         and above quarantine_cutoff is sky-high


    $final_spam_destiny = D_DISCARD;

    In example above, this causes mail which is 6.5+ to be discarded and not delivered to the user

    unless it hits 18 (always discarded at 18+ based on above settings)


    To enable the medium level to automatically be placed in the Users Junk folder, make these changes adjust these in amavisd.conf

    @addr_extension_spam_maps = ('Junk');

    $recipient_delimiter = '+';


    And you'll need to enable plus addressing, to do so edit:


    You will find a line about plus addressing in dovecot. You comment this one:

    flags=DRhu user=_dovecot:mail argv=/Applications/ -d ${user}

    And uncomment this one:

    flags=DRhu user=_dovecot:mail argv=/Applications/ -d ${user} -a ${recipient} -m ${extension}

    Stop/start mail.


    Make sure each user has a folder named 'Junk' (case sensitive)

    Now medium score should land in their Junk folder.

    This works great for iOS devices, they don't have to see ***Junk*** in their inbox anymore




    hope that helps

  • UptimeJeff Level 4 Level 4 (3,390 points)
    Currently Being Moderated
    Mar 18, 2013 1:52 PM (in response to Munger1)

    You are posting in the Mountain Lion Server forum...

    Server Admin does not adjust settings in Mountain Lion Server

  • UptimeJeff Level 4 Level 4 (3,390 points)
    Currently Being Moderated
    Mar 18, 2013 2:02 PM (in response to Munger1)

    I never use serveradmin for those settings... so can't comment.

    You can do much more learning how to work directly with amavisd.conf, so go straight to the source.


More Like This

  • Retrieving data ...

Bookmarked By (0)


  • 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.