.ifdef SPAMCHECK_ACTIVE
spamcheck_router:
  no_verify
  check_local_user
  .ifndef SPAMCHECK_SIZE_LIMIT
   SPAMCHECK_SIZE_LIMIT = 1024k
  .endif
  condition = "${if and {{!def:sender_host_authenticated} {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}} {<{$message_size}{SPAMCHECK_SIZE_LIMIT}}} {1}{0}}"
  driver = accept
  transport = spamcheck
.endif
