<div dir="ltr">Try following content:<br><a href="mailto:mailbox@domain.com">mailbox@domain.com</a> POLICY_BANK<br><div><div class="gmail_extra"><br></div><div class="gmail_extra">amavisd reload required after change /path-to/file.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 24, 2015 at 1:29 PM, Marius Gologan <span dir="ltr"><<a href="mailto:marius.gologan@gmail.com" target="_blank">marius.gologan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<br>
<div class="HOEnZb"><div class="h5"><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" rel="noreferrer" target="_blank">sys4.de</a>' => 'WHITELIST,NOBANNEDCHECK',<br>
'.<a href="http://paypal.de" rel="noreferrer" target="_blank">paypal.de</a>' => 'WHITELIST',<br>
'.<a href="http://paypal.com" rel="noreferrer" target="_blank">paypal.com</a>' => 'WHITELIST',<br>
'<a href="http://amazon.de" rel="noreferrer" 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" rel="noreferrer" target="_blank">https://sys4.de</a>, <a href="tel:%2B49%20%2889%29%2030%2090%2046%2064" value="+498930904664">+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>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><b style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:13px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="font-size:8pt;color:rgb(152,72,6)"><span style="color:rgb(56,118,29)"><span style="background-color:rgb(255,255,255)">This message was delivered using 100% recycled</span></span><span><span style="color:rgb(56,118,29)"><span style="background-color:rgb(255,255,255)"> electrons</span></span></span></span></b><b style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:13px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><span style="font-size:8pt;color:rgb(152,72,6)"><span></span></span></b>.<span style="color:rgb(0,0,128);font-family:arial,helvetica,sans-serif;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(253,248,219);display:inline!important;float:none"></span></div></div>
</div></div></div>