[exim] want to skip dspam router

Top Page
Delete this message
Reply to this message
Author: Brent Clark
Date:  
To: exim-users
Subject: [exim] want to skip dspam router
Hi all

I would like to run something quickly among the list, just in case I have not thought something through.

I have a router as so

dspam_router:
  no_verify
  check_local_user
  condition   = "${if and { \
  {!def:h_X-Spam-Flag:} \
  {!def:h_X-FILTER-DSPAM:} \
  {!eq {$received_protocol}{local}} \
  { <= {$message_size}{512k}} \
  }\
  {1}{0}}"
  headers_add  = "X-FILTER-DSPAM: by $primary_hostname on $tod_full"
  driver       = accept
  transport    = dspam_spamcheck


I have some user accounts that I would like not to go through the dspam router.
This is what I have come up with.

dspam_router:
  no_verify
  check_local_user
  condition   = "${if and { \
  {!def:h_X-Spam-Flag:} \
  {!def:h_X-FILTER-DSPAM:} \
  {!eq {$received_protocol}{local}} \
  { <= {$message_size}{512k}} \
  }\
  {1}{0}}"
  headers_add  = "X-FILTER-DSPAM: by $primary_hostname on $tod_full"
  driver       = accept
  transport    = dspam_spamcheck
  local_part_suffix != -bookings
  local_part != sales admin accounts


If anyone would be so kind as to over look this and perhaps share with me as too how I can enhance
on this, I would be most grateful.

Kind Regards
Brent Clark

P.s. The email address will be picked up by the router localuser.