RE: [exim] Exim ACL - Opt-out of spam check

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Dave Lugo
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: RE: [exim] Exim ACL - Opt-out of spam check
On Thu, 2 Jun 2005, Dickenson, Steven wrote:
>
> > What I did was to create a file called /etc/host_spam_noscan_to that
> > contains the domains that will not have their incoming mail checked
> > for spam. I then put a new ACL line above the entries that check for
> > spam.
> >
> > accept condition =
> > ${lookup{$domain}lsearch{/etc/host_spam_noscan_to}{1}{0}}
>
> Your problem here is that $domain is not set in the DATA phase, only in
> RCPT. You would need to move this check the RCPT ACL and set an ACL
> variable to query in the DATA phase. Again, the document mentioned
> above explains this.
>



$domain can be gotten in the DATA acl using something like this:

${lc:${extract{2}{@}{$recipients}}}

(the lc may be unneeded)


-- 
--------------------------------------------------------
Dave Lugo   dlugo@???    LC Unit #260   TINLC
Have you hugged your firewall today?   No spam, thanks.
--------------------------------------------------------
Are you the police?  . . . .  No ma'am, we're sysadmins.