[exim] Filtering for some real users AND some spamtrap users

Top Page
Delete this message
Reply to this message
Author: Marcin Krol
Date:  
To: exim-users
Subject: [exim] Filtering for some real users AND some spamtrap users
Hello everyone,

I have encountered somewhat difficult problem and would appreciate help
with this.

I have spamtrap addresses in /etc/exim4/spamtraps. Generally, I want to
collect such mail: I'm feeding a statistical filter with this. I have an
ACL like this:

accept recipients = lsearch;/etc/exim4/spamtraps

Almost all of the time it works; however, there are situations when
spammers send mail to a spamtrap user with CC to a real user or vice
versa (unknowingly, of course). This gets accepted and sent to user.

This is troublesome mail: I don't want to send it to real user's mailbox
and I do not want to feed the statistical filter with it either.

The best course of action would be to accept such mail and then send it
to /dev/null -- but I have some problem with how to implement this in Exim.

Even the simple option of rejecting such mail would have some problems:

deny recipients = lsearch;/etc/exim4/spamtraps
      recipients = lsearch;/etc/exim4/realusers



I don't really want to maintain file "realusers"; and I'm having trouble
with writing an extraction rule in Exim that would trigger (return true)
when a recipient's local part is in /etc/passwd but NOT in
/etc/exim4/spamtraps. Help, anyone?


And how do you send mail in Exim to /dev/null anyway? Is there some
idiom for it?


Regards,
mk

--
Premature optimization is the root of all fun.