diff --git a/etc/exim4/exim4.conf b/etc/exim4/exim4.conf index 2c1943e..6e7498c 100644 --- a/etc/exim4/exim4.conf +++ b/etc/exim4/exim4.conf @@ -893,7 +893,7 @@ spamcheck_router: condition = ${if !eq {$received_protocol}{spam-scanned}} condition = ${if !eq {$sender_address_domain}{$domain}} condition = ${if !eq{$acl_m_whitelist}{yes}} - condition = ${if < {$message_size}{512k}} + condition = ${if < {$message_size}{1024k}} local_part_suffix = +* local_part_suffix_optional = true local_parts = ${lookup mysql{SELECT vm_mboxes.mbox FROM vm_mboxes WHERE vm_mboxes.mbox='${quote_mysql:$local_part}' AND vm_mboxes.domain='${quote_mysql:$domain}' AND vm_mboxes.status > '0' AND vm_mboxes.filter = '2'}} @@ -1120,7 +1120,7 @@ spamcheck: driver = pipe command = /usr/sbin/exim -oMr spam-scanned -bS use_bsmtp = true - transport_filter = /usr/bin/spamc -f -u $local_part_data@$domain_data + transport_filter = /usr/bin/spamc --max-size=1048576 --username=$local_part_data@$domain_data home_directory = "/tmp" current_directory = "/tmp" # must use a privileged user to set $received_protocol on the way back in!