From b8fa816fa0c7ec2dc5d626b16ec4ef5f2afe1b6d Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Sat, 23 May 2009 01:08:51 +0100 Subject: [PATCH 1/1] And another acl for exim Signed-off-by: Stephen Gran --- modules/exim/templates/eximconf.erb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/modules/exim/templates/eximconf.erb b/modules/exim/templates/eximconf.erb index be08938db..2ed91fe5d 100644 --- a/modules/exim/templates/eximconf.erb +++ b/modules/exim/templates/eximconf.erb @@ -101,6 +101,13 @@ out acl_smtp_helo = check_helo acl_smtp_rcpt = ${if ={$interface_port}{587} {check_submission}{check_recipient}} acl_smtp_data = check_message +<%= +out='' +if nodeinfo.has_key?('heavy_exim') and not nodeinfo['heavy_exim'].empty? + out = "acl_smtp_mime = acl_check_mime" +end +out +%> # accept domain literal syntax in e-mail addresses. To actually make use of # this a router is also required @@ -756,6 +763,21 @@ out deny message = relay not permitted +<%= +out='' +if nodeinfo.has_key?('heavy_exim') and not nodeinfo['heavy_exim'].empty? +out=' +acl_check_mime: + + deny condition = ${if <{$message_size}{256000}} + set acl_m5 = ${perl{surblspamcheck}} + condition = ${if eq{$acl_m5}{false}{no}{yes}} + log_message = $acl_m5 +' +end +out +%> + #!!# ACL that is used after the DATA command check_message: require verify = header_syntax -- 2.20.1