[exim] Exim filtering spam with dnslists

Page principale
Supprimer ce message
Répondre à ce message
Auteur: zx1
Date:  
À: exim-users
Sujet: [exim] Exim filtering spam with dnslists
need all email in a dnslists redirect to a folder. Spam
Now email from the dnslists are blocked as follows:

deny    message       = DNSBL listed at $dnslist_domain\n$dnslist_text
        hosts         = ! +relay_from_hosts
        dnslists      = zen.spamhaus.org:bl.spamcop.net:xbl.spamhaus.org:bb.barracudacentral.org:list.bbfh.org:l3.bbfh.ext.sorbs.net



need all email from dnslists send them to routers ditch_spam:
(Now all email with spam_score > 100 redirect to a folder. Spam)
The problem is that the condition will not be received to indicate the condition:
dnslists = zen.spamhaus.org: bl.spamcop.net: xbl.spamhaus.org: bb.barracudacentral.org: list.bbfh.org: l3.bbfh.ext.sorbs.net
How to write such condition?? can one do?


######################################################################
#                      ROUTERS CONFIGURATION                         #
#               Specifies how addresses are handled                  #
######################################################################



begin routers

ditch_spam:
  driver = redirect
  allow_fail
  file_transport = ditch_spam_transport
  data = ${lookup mysql{select concat(maildir_mailbox,'.Spam')  \
              from  table_users_mail \
              WHERE user_mail_adress='${quote_mysql:${local_part}@${domain}}'}}
  condition = ${if >{$spam_score_int}{100} {yes}{no}}
  local_part_suffix = -*
  local_part_suffix_optional
  retry_use_local_part


######################################################################
#                      TRANSPORTS CONFIGURATION                      #
######################################################################



begin transports


ditch_spam_transport:
driver = appendfile
envelope_to_add
return_path_add
mode = 0600
maildir_format = true
create_directory = true
user = ${lookup mysql{select uid_user_mail from table_users_mail WHERE user_mail_adress='${quote_mysql:${local_part}@${domain}}'}}
group = ${lookup mysql{select gid_group_mail from table_users_mail WHERE user_mail_adress='${quote_mysql:${local_part}@${domain}}'}}
maildir_use_size_file = false