Re: [exim] Filtering for some real users AND some spamtrap u…

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: David Woodhouse
Dátum:  
Címzett: Marcin Krol
CC: exim-users
Tárgy: Re: [exim] Filtering for some real users AND some spamtrap users
On Mon, 2010-06-07 at 14:32 +0200, Marcin Krol wrote:
> 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.


No it wouldn't; that's _never_ the best solution.

Try something this in your rcpt acl (after recipient verification and
other reasons for rejection):

defer recipients = !lsearch;/etc/exim4/spamtraps
      condition = ${if eq{$acl_m_spamtrap}{yes}}
      message = Try this real user later in a separate submission please


defer recipients = !lsearch;/etc/exim4/spamtraps
      condition = ${if eq{$acl_m_spamtrap}{no}}
      message = Try this spamtrap user later in a separate submission please


 warn recipients = lsearch;/etc/exim4/spamtraps
      set acl_m_spamtrap = yes


 warn recipients = !lsearch;/etc/exim4/spamtraps
      set acl_m_spamtrap = no


Then later in the content ACL you can accept if $acl_m_seenspamtrap is
'yes', and do the normal filtering if not.

--
dwmw2