[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amavis-user
Subject:    Re: Banned Rules
From:       Konstantin <myownletters () gmail ! com>
Date:       2014-07-31 22:01:30
Message-ID: CABOOiQVYMXZ+tB18OTd5aJExLpeASuvPxm7Ts-T6Atp=opbSiQ () mail ! gmail ! com
[Download RAW message or body]

Hi,

you can try following:

$ cat /etc/amavisd/attachment_control.cf

### Order is important
@banned_filename_maps = ({
'user1@domain.com' => 'TEST1',
'domain2.com' => 'TEST2',
'.' => 'DEFAULT_RULE'
 });


2014-07-27 20:17 GMT+03:00 Deeztek Support <support@deeztek.com>:

> Anyone have any ideas?
>
>
>
>
> On 7/25/2014 8:56 AM, Deeztek Support wrote:
>
>> On 7/25/2014 1:51 AM, A. Schulze wrote:
>>
>>  my amavisd.conf just only onclude other files:
>>>
>>>
>>
>> Thanks for the tip, however it sounds like I need to redo my entire
>> amavis configuration which I'm not looking to do. I am just trying to
>> see if it would be possible to point to a rules file from my amavis
>> 50-user file similar to the following:
>>
>> @local_domains_maps=(read_hash("/etc/postfix/relay_domains"));
>>
>> the line above points to a file that contains all the domains the system
>> handles. So, I'm wondering if I can do something similar for the banned
>> rules.
>>
>> thanks a lot
>>
>>
>>
>


-- 
*This message was delivered using 100% recycled electrons*.

[Attachment #3 (text/html)]

<div dir="ltr"><div>Hi,<br><br></div>you can try following:<br><div><div><br>$ cat \
/etc/amavisd/<a href="http://attachment_control.cf">attachment_control.cf</a><br><br>### \
Order is important<br>@banned_filename_maps = ({<br> &#39;<a \
href="mailto:user1@domain.com">user1@domain.com</a>&#39; =&gt; \
&#39;TEST1&#39;,<br>&#39;<a href="http://domain2.com">domain2.com</a>&#39; =&gt; \
&#39;TEST2&#39;,<br>&#39;.&#39; =&gt; &#39;DEFAULT_RULE&#39;<br>  });<br> <div><div \
class="gmail_extra"><br><br><div class="gmail_quote">2014-07-27 20:17 GMT+03:00 \
Deeztek Support <span dir="ltr">&lt;<a href="mailto:support@deeztek.com" \
target="_blank">support@deeztek.com</a>&gt;</span>:<br><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> Anyone have any ideas?<div class=""><div \
class="h5"><br> <br>
<br>
<br>
On 7/25/2014 8:56 AM, Deeztek Support wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> On 7/25/2014 1:51 AM, A. Schulze wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex"> my amavisd.conf just only onclude other \
files:<br> <br>
</blockquote>
<br>
<br>
Thanks for the tip, however it sounds like I need to redo my entire<br>
amavis configuration which I&#39;m not looking to do. I am just trying to<br>
see if it would be possible to point to a rules file from my amavis<br>
50-user file similar to the following:<br>
<br>
@local_domains_maps=(read_<u></u>hash(&quot;/etc/postfix/relay_<u></u>domains&quot;));<br>
 <br>
the line above points to a file that contains all the domains the system<br>
handles. So, I&#39;m wondering if I can do something similar for the banned<br>
rules.<br>
<br>
thanks a lot<br>
<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><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-al \
ign: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-al \
ign: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-s \
tyle:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:n \
ormal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spa \
cing:0px;background-color:rgb(253,248,219);display:inline!important;float:none"></span></div>


</div></div></div></div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic