<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 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 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;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@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'>Hi Konstantin,<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'>It worked perfectly. <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'>Thank you very much.<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'>Marius.<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><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Konstantin [mailto:myownletters@gmail.com] <br><b>Sent:</b> Friday, July 24, 2015 6:56 PM<br><b>To:</b> Marius Gologan<br><b>Cc:</b> Patrick Ben Koetter; amavis-users@amavis.org<br><b>Subject:</b> Re: Apply policy_bank for valid DKIM senders<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Try following content:<br><a href="mailto:mailbox@domain.com">mailbox@domain.com</a> POLICY_BANK<o:p></o:p></p><div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>amavisd reload required after change /path-to/file.<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On Fri, Jul 24, 2015 at 1:29 PM, Marius Gologan <<a href="mailto:marius.gologan@gmail.com" target="_blank">marius.gologan@gmail.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal>Hi,<br><br>Do you have any advice for me regarding my issue with read_hash described below?<br><br>Thank you.<br><br>Regards,<br>Marius.<o:p></o:p></p><div><div><p class=MsoNormal style='margin-bottom:12.0pt'><br>-----Original Message-----<br>From: Marius Gologan [mailto:<a href="mailto:marius.gologan@gmail.com">marius.gologan@gmail.com</a>]<br>Sent: Thursday, July 23, 2015 10:41 AM<br>To: 'Patrick Ben Koetter'; <a href="mailto:amavis-users@amavis.org">amavis-users@amavis.org</a><br>Subject: RE: Apply policy_bank for valid DKIM senders<br><br>Is not working with read_hash. I tried this:<br>@author_to_policy_bank_maps = (read_hash('/path-to/file'));<br><br>File content:<br>'<a href="mailto:mailbox@domain.com">mailbox@domain.com</a>' => 'POLICY_BANK',<br><br>Domain is DKIM signed and works when I place the value without read_hash.<br>I changed file permission to root and amavis. No difference.<br><br>I'm using amavisd-new-2.7.1 on Debian Wheezy.<br><br>Any thoughts?<br><br>Thank you.<br><br>Marius.<br><br>-----Original Message-----<br>From: amavis-users [mailto:<a href="mailto:amavis-users-bounces%2Bmarius.gologan">amavis-users-bounces+marius.gologan</a>=<a href="mailto:gmail.com@amavis.org">gmail.com@amavis.org</a>] On Behalf Of Patrick Ben Koetter<br>Sent: Wednesday, July 22, 2015 10:26 PM<br>To: <a href="mailto:amavis-users@amavis.org">amavis-users@amavis.org</a><br>Subject: Re: Apply policy_bank for valid DKIM senders<br><br>* Marius Gologan <<a href="mailto:marius.gologan@gmail.com">marius.gologan@gmail.com</a>>:<br>> Hi,<br>><br>> Does anyone know a trick to apply a custom policy_bank for Senders<br>> signed with valid DKIM only?<br><br>Use @author_to_policy_bank_maps and map valid DKIM sender(domains) to policy banks like this:<br><br>@author_to_policy_bank_maps = ( {<br> '<a href="http://sys4.de" target="_blank">sys4.de</a>' => 'WHITELIST,NOBANNEDCHECK',<br> '.<a href="http://paypal.de" target="_blank">paypal.de</a>' => 'WHITELIST',<br> '.<a href="http://paypal.com" target="_blank">paypal.com</a>' => 'WHITELIST',<br> '<a href="http://amazon.de" target="_blank">amazon.de</a>' => 'WHITELIST',<br>} );<br><br><br>p@rick<br><br><br>><br>><br>><br>> I want to ensure the whitelisted Senders are not spoofed and set<br>> policy exceptions such as this below only for signed senders:<br>><br>><br>><br>> $policy_bank{'NO_BANNED_ATTACHMENTS'} = { # those configured to send<br>> mail to port 10027<br>><br>> bypass_spam_checks_maps => [0], # don't spam-check<br>> this mail<br>><br>> bypass_virus_checks_maps => [0], # don't virus-check<br>> this mail<br>><br>> bypass_banned_checks_maps => [1], # don't banned-check<br>> this mail<br>><br>> bypass_header_checks_maps => [1], # don't header-check<br>> this mail<br>><br>> };<br>><br>><br>><br>> Thank you.<br>><br>><br>><br>> Marius.<br>><br><br>--<br>[*] sys4 AG<br><br><a href="https://sys4.de" target="_blank">https://sys4.de</a>, <a href="tel:%2B49%20%2889%29%2030%2090%2046%2064">+49 (89) 30 90 46 64</a><br>Franziskanerstraße 15, 81669 München<br><br>Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263<br>Vorstand: Patrick Ben Koetter, Marc Schiffbauer<br>Aufsichtsratsvorsitzender: Florian Kirstein<br><br><br><o:p></o:p></p></div></div></div><p class=MsoNormal><br><br clear=all><br>-- <o:p></o:p></p><div><div><p class=MsoNormal><b><span style='font-size:8.0pt;font-family:"Verdana","sans-serif";color:#38761D;background:white'>This message was delivered using 100% recycled electrons</span></b>.<o:p></o:p></p></div></div></div></div></div></div></body></html>