Mailing List Archive

block attachment specific recipients
Is it possible to filter for accepting zip rar of attachments from specific senders, blocking from the rest and accepting doc, xls pdf from all ?

this rule blocks everyone

regards


acl_check_mime:
accept hosts = :
# --- accept messages for abuse / postmaster
accept condition = $acl_m_pm
deny decode = default
condition = ${if >{$mime_anomaly_level}{1}}
message = This message contains a MIME error ($mime_anomaly_text)
deny condition = ${if match{$mime_boundary}{\N( |\t)$\N}}
message = MIME boundary delimiter ends with whitespace
deny condition = ${if >{${strlen:$mime_boundary}}{70}}
message = Too long MIME boundary delimiter
deny condition = ${if match{${lc:$mime_filename}}{\N(\.com|\.vbs|\.bat|\.pif|\.scr|\.exe|\.js|\.mpeg|\.wmv|\.wav|\.wmp|\.asf|\.zip|\.rar|\.mpg|\.bmp)$\N}}
message = Nie obslugujemy tych zalacznikow
accept authenticated = *
warn !hosts = +relay_from_hosts
condition = ${if >{$mime_anomaly_level}{0}}
set acl_c0 = ${eval:$acl_c0+20}
set acl_c1 = DEMIME(20) found MIME error ($mime_anomaly_text); $acl_c1
accept
--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: block attachment specific recipients [ In reply to ]
On 09/03/2018 12:21 PM, S?awomir Dworaczek via Exim-users wrote:
> Is it possible to filter for accepting zip rar of attachments from specific senders, blocking from the rest and accepting doc, xls pdf from all ?

Yes. You need to understand how ACLs work; they are essentially
a programming language. See the ACL chapter in the documentation.
--
Cheers,
Jeremy


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/
Re: block attachment specific recipients [ In reply to ]
Hi,
See this page:
http://lena.kiev.ua/Lena-eximconf-run.txt
Best Regards.







>-------- ?????????? ????? --------

>??: S?awomir Dworaczek via Exim-users exim-users@exim.org

>???????: [exim] block attachment specific recipients

>??:

>????????? ??: 03.09.2018 14:21


Is it possible to filter for accepting zip rar of attachments from specific senders, blocking from the rest and accepting doc, xls pdf from all ?



this rule blocks everyone



regards





acl_check_mime:

accept hosts = :

# --- accept messages for abuse / postmaster

accept condition = $acl_m_pm

deny decode = default

condition = ${if >{$mime_anomaly_level}{1}}

message = This message contains a MIME error ($mime_anomaly_text)

deny condition = ${if match{$mime_boundary}{\N( |\t)$\N}}

message = MIME boundary delimiter ends with whitespace

deny condition = ${if >{${strlen:$mime_boundary}}{70}}

message = Too long MIME boundary delimiter

deny condition = ${if match{${lc:$mime_filename}}{\N(\.com|\.vbs|\.bat|\.pif|\.scr|\.exe|\.js|\.mpeg|\.wmv|\.wav|\.wmp|\.asf|\.zip|\.rar|\.mpg|\.bmp)$\N}}

message = Nie obslugujemy tych zalacznikow

accept authenticated = *

warn !hosts = +relay_from_hosts

condition = ${if >{$mime_anomaly_level}{0}}

set acl_c0 = ${eval:$acl_c0+20}

set acl_c1 = DEMIME(20) found MIME error ($mime_anomaly_text); $acl_c1

accept

--

## List details at https://lists.exim.org/mailman/listinfo/exim-users

## Exim details at http://www.exim.org/

## Please use the Wiki with this list - http://wiki.exim.org/


--
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/