{"id":57,"date":"2011-06-15T21:57:23","date_gmt":"2011-06-15T21:57:23","guid":{"rendered":"http:\/\/www.lorenzcom.com\/?p=57"},"modified":"2013-04-30T13:03:37","modified_gmt":"2013-04-30T13:03:37","slug":"how-to-prevent-spam-quarantine-in-amavisd-new","status":"publish","type":"post","link":"https:\/\/lorenzcom.com\/?p=57","title":{"rendered":"How to Prevent Spam Quarantine in Amavisd-new"},"content":{"rendered":"<p>To prevent spam from being quarantined to some non-accessible mailbox in Amavisd-new you must deactivate the quarantine command in <code>etc\/amavis\/amavisd.conf.<\/code> To do this, find (or add) the following variables in the <code>etc\/amavis\/amavisd.conf<\/code> file and set them so that they read:<\/p>\n<p><code>$banned_quarantine_to = undef;     # Setting these to undef disables the quarantine.<br \/>\n$bad_header_quarantine_to = undef;<br \/>\n$spam_quarantine_to  = undef;<\/code><\/p>\n<p>Also, find (or add) and set the following variables and values:<\/p>\n<p><code>$final_banned_destiny = D_PASS;  # (defaults to D_BOUNCE)<br \/>\n$final_spam_destiny = D_PASS;  # (defaults to D_BOUNCE)<br \/>\n$final_bad_header_destiny = D_PASS;    # (defaults to D_PASS)<\/code><\/p>\n<p>I also set a few other variables in the configuration file to insure that Spamassassin&#8217;s &#8216;X-Spam-&#8230;&#8217;  headers were added to every email checked so that my Mail.app could handle the spam status.<\/p>\n<p><code>$sa_tag_level_deflt  = undef;  # add spam info headers if at, or above that level<br \/>\n$sa_tag2_level_deflt = 5.0; # add 'spam detected' headers at that level<br \/>\n$sa_kill_level_deflt = 9999;  # triggers spam evasive actions<\/code><\/p>\n<p><code>$sa_tag2_level_deflt<\/code> defines the score level.<\/p>\n<p>Also, spam headers will not be written to the message unless the local domains are defined for amavisd-new. The easiest way to do this for me was to find the following array variable and edit it thus:<\/p>\n<p><code>@local_domains_maps = ( [ \".$mydomain\", 'sub.example.net', '.example.com' ] );<\/code><\/p>\n<p>Do not change the &#8220;.$mydomains&#8221; entry. Change the other example domain names if you have more than one domain you are serving mail for &#8211; delete them if you don&#8217;t. Type exactly to provide fully qualified domain names and separate multiple domains with commas.<\/p>\n<p>Our mail server is a Mac Mini with Snow Leopard (10.6.x) running postfix, dovecot, and amavisd-new with ClamAV and Spamassassin. Spamassassin is great at identifying spam, but I do not trust it to identify all mail accurately. I probably am not unlike you: I want to read the messages sent to me from friends and clients. Some of these messages have irreplaceable information and the last thing I want is to have it directed to a mailbox I can&#8217;t easily get to. I don&#8217;t like not seeing email coming to my mailserver.<\/p>\n<p>I didn&#8217;t change the way amavisd-new handles viruses.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To prevent spam from being quarantined to some non-accessible mailbox in Amavisd-new you must deactivate the quarantine command in etc\/amavis\/amavisd.conf. To do this, find (or add) the following variables in the etc\/amavis\/amavisd.conf file and set them so that they read: <span class=\"excerpt-dots\">&hellip;<\/span> <a class=\"more-link\" href=\"https:\/\/lorenzcom.com\/?p=57\"><span class=\"more-msg\">Continue reading &rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[32,31],"tags":[7,3,6,5,4],"_links":{"self":[{"href":"https:\/\/lorenzcom.com\/index.php?rest_route=\/wp\/v2\/posts\/57"}],"collection":[{"href":"https:\/\/lorenzcom.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lorenzcom.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lorenzcom.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lorenzcom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":18,"href":"https:\/\/lorenzcom.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":237,"href":"https:\/\/lorenzcom.com\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions\/237"}],"wp:attachment":[{"href":"https:\/\/lorenzcom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lorenzcom.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lorenzcom.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}