<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">We have been able to accomplish what you are asking for with our appliance. We have a job that runs on a scheduled basis (2, 4, 8 hours or daily depending on
recipient preferences) that goes through the msgs table and selects any messages that were quarantined during that time period (viruses, banned files, spam, bad headers) and creates a report that it sends to the recipient with a list of the messages that
were quarantined. The report contains the listing as well as a link to view/release the message back to the recipients mailbox.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Our appliance is open source and free. You can read it about it and download it here if you are interested:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><a href="https://www.deeztek.com/products/hermes-secure-email-gateway/">https://www.deeztek.com/products/hermes-secure-email-gateway/</a><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Source code is also posted on github if you wanna see how we went about implementing that functionality, or you can simply download and implement our appliance
in your environment. We also have very extensive documentation.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> amavis-users [mailto:amavis-users-bounces+dino.edwards=mydirectmail.net@amavis.org]
<b>On Behalf Of </b>Tom Robinson<br>
<b>Sent:</b> Thursday, February 7, 2019 5:23 PM<br>
<b>To:</b> amavis-users@amavis.org<br>
<b>Subject:</b> Re: Send recipient notification of quarantined spam<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p><span style="font-family:"Calibri",sans-serif">On 7/2/19 6:00 pm, Dominic Raferd wrote:</span>
<br>
<span style="font-family:"Calibri",sans-serif">></span> <br>
<span style="font-family:"Calibri",sans-serif">></span> <br>
<span style="font-family:"Calibri",sans-serif">> On Thu, 7 Feb 2019 at 04:46, Tom Robinson <<a href="mailto:tom.robinson@motec.com.au%20%0b">tom.robinson@motec.com.au<span style="font-family:"Times New Roman",serif">
<br>
</span></a>> <<a href="mailto:tom.robinson@motec.com.au">mailto:tom.robinson@motec.com.au</a>>> wrote:</span>
<br>
<span style="font-family:"Calibri",sans-serif">></span> <br>
<span style="font-family:"Calibri",sans-serif">> bump</span> <br>
<span style="font-family:"Calibri",sans-serif">></span> <br>
<span style="font-family:"Calibri",sans-serif">> On 5/2/19 12:08 pm, Tom Robinson wrote:</span>
<br>
<span style="font-family:"Calibri",sans-serif">>></span> <br>
<span style="font-family:"Calibri",sans-serif">>> Hi,</span> <br>
<span style="font-family:"Calibri",sans-serif">>></span> <br>
<span style="font-family:"Calibri",sans-serif">>> I'm sure this has been answered before but I just can't seem to find the right settings.</span>
<br>
<span style="font-family:"Calibri",sans-serif">>></span> <br>
<span style="font-family:"Calibri",sans-serif">>> I want the recipient of a quarantined SPAM email to receive a notification that it was</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> quarantined.</span> <br>
<span style="font-family:"Calibri",sans-serif">>></span> <br>
<span style="font-family:"Calibri",sans-serif">>> Notifications are working for viruses that get quarantined but I can't get it to work for SPAM.</span>
<br>
<span style="font-family:"Calibri",sans-serif">>></span> <br>
<span style="font-family:"Calibri",sans-serif">>> I have the following in my amavisd.conf</span>
<br>
<span style="font-family:"Calibri",sans-serif">>></span> <br>
<span style="font-family:"Calibri",sans-serif">>> $virus_admin = "postmaster\@$mydomain"; # notifications recip.</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> $mailfrom_notify_admin = "virusalert\@$mydomain"; # notifications sender</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> $mailfrom_notify_recip = "virusalert\@$mydomain"; # notifications sender</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> $mailfrom_notify_spamadmin = "spamalert\@$mydomain"; # notifications sender</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> $mailfrom_to_quarantine = ''; # null return path; uses original sender if undef</span>
<br>
<span style="font-family:"Calibri",sans-serif">>></span> <br>
<span style="font-family:"Calibri",sans-serif">>> $final_virus_destiny = D_DISCARD;</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> $final_banned_destiny = D_DISCARD;</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> $final_spam_destiny = D_DISCARD; #!!! D_DISCARD / D_REJECT</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> $final_bad_header_destiny = D_PASS;</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> $virus_quarantine_method = 'local:virus/%m';</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> $spam_quarantine_method = 'local:spam/%m.gz';</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> $banned_files_quarantine_method = 'local:banned/%m';</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> $bad_header_quarantine_method = 'local:badh/%m';</span>
<br>
<span style="font-family:"Calibri",sans-serif">>></span> <br>
<span style="font-family:"Calibri",sans-serif">>> $warnvirusrecip = 1;</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> $warnbannedrecip = 1;</span>
<br>
<span style="font-family:"Calibri",sans-serif">>> $warnbannedsender = 0;</span>
<br>
<span style="font-family:"Calibri",sans-serif">>></span> <br>
<span style="font-family:"Calibri",sans-serif">> 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></span> <br>
<span style="font-family:"Calibri",sans-serif">> I'm not clear how amavis decides whether a recipient is 'local'. Might be worth setting</span>
<br>
<span style="font-family:"Calibri",sans-serif">> $warn_offsite to 1 if only to rule this out.</span>
<br>
<span style="font-family:"Calibri",sans-serif">></span> <br>
<span style="font-family:"Calibri",sans-serif">> Looking at comments in amavisd-new code 2.11.0 it seems that warnbannedrecip is deprecated in</span>
<br>
<span style="font-family:"Calibri",sans-serif">> favour of warnbannedrecip_maps (although it should still work).</span>
<br>
<span style="font-family:"Calibri",sans-serif">></span> <br>
<span style="font-family:"Calibri",sans-serif">> You aren't using any named policy banks are you? If so, it might also need to be set explicitly</span>
<br>
<span style="font-family:"Calibri",sans-serif">> inside each named policy bank (as do a lot of things, sadly), and with different syntax</span>
<br>
<span style="font-family:"Calibri",sans-serif">> (warnbannedrecip => 1,).</span>
<o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif">Thanks Dominic.</span> <o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif">Just to be clear, I'm using CentOS 7, amavisd-new 2.11.0.</span>
<o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif">I can't find ANY decent documentation about how to configure warnbannedrecip_maps. How can I use</span>
<br>
<span style="font-family:"Calibri",sans-serif">this configuration option?</span> <o:p>
</o:p></p>
<p><span style="font-family:"Calibri",sans-serif">The only policy banks in my amavisd.conf are the default ones that are already configured in the</span>
<br>
<span style="font-family:"Calibri",sans-serif">CentOS 7 packages:</span> <o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif">$policy_bank{'MYNETS'} = { # mail originating from @mynetworks</span>
<br>
<span style="font-family:"Calibri",sans-serif">$policy_bank{'ORIGINATING'} = { # mail supposedly originating from our users</span>
<br>
<span style="font-family:"Calibri",sans-serif">$policy_bank{'AM.PDP-SOCK'} = {</span>
<o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif">The warnbannedrecip_maps is nowhere to be found in my amavisd.conf</span>
<o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif">I've also read that setting $warn_offsite on can create backscatter. Really not sure how to handle this.</span>
<o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif">Where is the documentation? RTFM comes to mind but it's hard when you can't find any!</span>
<o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif">The following is an interesting read but the discussion is about 'sender notification'</span>
<o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif"><a href="https://lists.amavis.org/pipermail/amavis-users/2016-November/004649.html">https://lists.amavis.org/pipermail/amavis-users/2016-November/004649.html</a></span>
<o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif">I need 'recipient notification'</span>
<o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif">I'm very hesitant to set $warn_offsite until I can be sure what it will do. :-/</span>
<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<o:p></o:p></p>
</div>
</body>
</html>