Re: [Exim] System-wide spam handling, with opt-out possibili…

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Jonathan Vanasco
Date:  
À: Stian Grytoyr
CC: exim-users
Sujet: Re: [Exim] System-wide spam handling, with opt-out possibility
On Friday, September 12, 2003, at 05:22 AM, Stian Grytoyr wrote:

> - Make Exim deliver mails that are tagged as spam into a
> Maildir subfolder, i.e ~/Maildir/.spam/.


that is super easy

from my config:

virtuals_maildir_delivery:
   driver                        = appendfile
   hide directory = ${lookup ldap { \


user="cn=Manager,dc=domain,dc=com" pass=password \

ldap:///fqdn=$domain,ou=Email,o=tree,dc=domain,dc=com\

         ?maildir\


         ?sub\


         ?mail=${quote_ldap:$local_part}@${quote_ldap:$domain}\


         } \


{$value${if eq
{${substr_0_3:$header_X-Spam-Status:}}{Yes}{/.spam-probable}{}}} \

fail \
                                                                 }


the magic is in the "${if eq
{${substr_0_3:$header_X-Spam-Status:}}{Yes}{/.spam-probable}{}}"
statement, which just checks for a spam-status header and sends to the
right folder

in terms of checking for the existence of a folder. i have no clue.
maybe handle that with a filter?

> - ...but only if the file ~/.optout-spam does not exist. If
> it does, follow the normal delivery process, i.e. check
> for .procmailrc, Exim filter and so on.