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

Góra strony
Delete this message
Reply to this message
Autor: Dickenson, Steven
Data:  
Dla: Rodney Arne Karlsen, exim-users
CC: 
Temat: RE: [exim] Exim ACL - Opt-out of spam check
Rodney Arne Karlsen wrote:
> Basically I have this mail server where some clients do not want
> their mail checked for spam. This is because they receive a lot of
> mail from Asian countries and Spam Assassin seems to not like it
> much.


This is difficult to do at SMTP time, since a single message could be
destined for multiple recipients and domains. For a exiscan way of
attempting this, see the exiscan ACL example file, example #6.

http://duncanthrax.net/exiscan-acl/exiscan-acl-examples.txt

> 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.

- S
---
Steven Dickenson <sdickenson@???>
Computer Network Manager
The Key School, Annapolis Maryland