increase max spam scan size to 1024k

This commit is contained in:
Matthew Saunders Brown 2025-02-25 15:09:09 -08:00
parent 96ba4e3bb8
commit fff2b4728f

View File

@ -893,7 +893,7 @@ spamcheck_router:
condition = ${if !eq {$received_protocol}{spam-scanned}} condition = ${if !eq {$received_protocol}{spam-scanned}}
condition = ${if !eq {$sender_address_domain}{$domain}} condition = ${if !eq {$sender_address_domain}{$domain}}
condition = ${if !eq{$acl_m_whitelist}{yes}} condition = ${if !eq{$acl_m_whitelist}{yes}}
condition = ${if < {$message_size}{512k}} condition = ${if < {$message_size}{1024k}}
local_part_suffix = +* local_part_suffix = +*
local_part_suffix_optional = true 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'}} 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 driver = pipe
command = /usr/sbin/exim -oMr spam-scanned -bS command = /usr/sbin/exim -oMr spam-scanned -bS
use_bsmtp = true 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" home_directory = "/tmp"
current_directory = "/tmp" current_directory = "/tmp"
# must use a privileged user to set $received_protocol on the way back in! # must use a privileged user to set $received_protocol on the way back in!