<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 7 Feb 2019 at 04:46, Tom Robinson <<a href="mailto:tom.robinson@motec.com.au">tom.robinson@motec.com.au</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p><font face="Verdana">bump</font><br>
    </p>
    <div class="gmail-m_82360886309564161moz-signature">
      
      <div class="gmail-m_82360886309564161moz-cite-prefix">
        
        
        On 5/2/19 12:08 pm, Tom Robinson wrote:<br>
      </div>
    </div>
    <blockquote type="cite">
      
      <p><font face="Verdana">Hi,</font></p>
      <p><font face="Verdana">I'm sure this has been answered before but
          I just can't seem to find the right settings.</font></p>
      <p><font face="Verdana">I want the recipient of a quarantined SPAM
          email to receive a notification that it was quarantined.</font></p>
      <p><font face="Verdana">Notifications are working for viruses that
          get quarantined but I can't get it to work for SPAM.</font></p>
      <p><font face="Verdana">I have the following in my amavisd.conf</font></p>
      <p><font face="Verdana">$virus_admin               =
          "postmaster\@$mydomain";                   # notifications
          recip.<br>
          $mailfrom_notify_admin     =
          "virusalert\@$mydomain";                   # notifications
          sender<br>
          $mailfrom_notify_recip     =
          "virusalert\@$mydomain";                   # notifications
          sender<br>
          $mailfrom_notify_spamadmin =
          "spamalert\@$mydomain";                    # notifications
          sender<br>
          $mailfrom_to_quarantine = ''; # null return path; uses
          original sender if undef<br>
        </font></p>
      <p><font face="Verdana">$final_virus_destiny      = D_DISCARD;<br>
          $final_banned_destiny     = D_DISCARD;<br>
          $final_spam_destiny       = D_DISCARD;  #!!!  D_DISCARD /
          D_REJECT<br>
          $final_bad_header_destiny = D_PASS;<br>
          $virus_quarantine_method        = 'local:virus/%m';<br>
          $spam_quarantine_method         = 'local:spam/%m.gz';<br>
          $banned_files_quarantine_method = 'local:banned/%m';<br>
          $bad_header_quarantine_method   = 'local:badh/%m';<br>
        </font></p>
      <p><font face="Verdana">$warnvirusrecip = 1;<br>
          $warnbannedrecip = 1;<br>
          $warnbannedsender = 0;</font></p></blockquote></div></blockquote><div><span class="gmail_default" style="font-size:small">Try: <a href="https://lists.amavis.org/pipermail/amavis-users/2012-July/001717.html">https://lists.amavis.org/pipermail/amavis-users/2012-July/001717.html</a><br></span></div><div><span class="gmail_default" style="font-size:small">I'm not clear how amavis decides whether a recipient is 'local'. Might be worth setting $warn_offsite to 1 if only to rule this out.</span></div><div><span class="gmail_default" style="font-size:small"><br></span></div><div><span class="gmail_default" style="font-size:small">Looking at comments in amavisd-new code 2.11.0 it seems that warnbannedrecip is deprecated in favour of warnbannedrecip_maps (although it should still work).<br></span></div><div><span class="gmail_default" style="font-size:small"><br></span></div><div><span class="gmail_default" style="font-size:small">You aren't using any named policy banks are you? If so, it might also need to be set explicitly inside each named policy bank (as do a lot of things, sadly), and with different syntax (warnbannedrecip  => 1,).<br></span></div></div></div></div></div></div></div>