Re: limiting data acl scan
"Peter Bowyer" <[email protected]> Wed, 19 Jan 2005 20:38:54 -0000
| Newsgroups | gmane.mail.exim.exiscan.user |
|---|---|
| Message-ID | <01e501c4fe66$e5a54770$0a01a8c0@pbdesktop> |
William Rundquist <[email protected]> wrote: > I'm trying to determine how to limit the data acl > scan (ie spam scanning) to only email that is > destined for local delivery. > > The situation is that I have a number of domains for > which I do MX secondary. All of these domains do their > own spam / virus scanning. So its effort (ie cpu cycles) > that is in essence wasted for my server to scan email > that is going to be forwarded to the these domains. > Unfortunately, trying to check for the domain using > an accept domains = +local_domains isn't allowed in > the data acl. So I need some other mechanism for limiting > the scan. Set an acl_m variable in a RCPT acl warn set acl_m0=1 domains = +local_domains Now acl_m0 is set to 1 if we've seen a local recipient - I guess your rule means we must scan if we have at least one local recipient... Now test $acl_m0 in a condtion in your DATA acl. Peter