[exim] SpamAssassin and Exim

Página Inicial
Delete this message
Reply to this message
Autor: michael
Data:  
Para: Exim-Users@Exim.Org
Assunto: [exim] SpamAssassin and Exim
Hello Everybody,

Below is my current config, the Problem I am having is that I want to save
all my messages that are blocked as spam. That way I can tell SpamAssassin
whether it's spam or not. I am saving all my other emails in my
transport(local_delivery). Any have any ideas?

Thanks,
Michael
----------------------------------------------------=-----------------------
----------------------------------
acl_check_data:
warn set acl_m9 = ${lookup mysql {LOG_FIRST}}


# If HELO verification fails:
warn
 !verify        = helo
 set acl_c1     = Remote host $sender_host_address \
                    ${if !def:sender_host_name {($sender_helo_name) }}\
                    incorrectly presented itself as $sender_helo_name
 message        = X-HELO-Warning: $acl_c1



warn message    = X-Spam-Score: $spam_score
     spam       = ${lc:${extract{1}{=@}{$recipients}{$value}{mail}}}:true


warn message    = X-Spam-Bar: $spam_bar
     spam       = ${lc:${extract{1}{=@}{$recipients}{$value}{mail}}}:true


warn set acl_m9 = ${lookup mysql {UPDATE message_log SET mail_spam =
'$spam_score_int' WHERE msgid = '$message_id'}}

#block messages to me if the clients spamscore is over 8
deny message = This message scored $spam_score spam points.
        spam = ${lc:${extract{1}{=@}{$recipients}{$value}{mail}}}:true
   condition = ${if >{$spam_score_int}{60}{1}{0}}
  set acl_m9 = ${lookup mysql {UPDATE message_log SET mail_spam =
'$spam_score_int',mail_status = 'Blocked - Spam' WHERE msgid
 = '$message_id'}}


#accept ham
accept






begin routers
same_msg:
driver = accept
verify_sender
user = mail
group = mail
transport = local_delivery
unseen = yes





begin transports
local_delivery:
driver = appendfile
file = /var/spool/exim/history/${domain}/${local_part}/$message_id.msg
delivery_date_add
envelope_to_add
return_path_add
group = mail
user = mail
mode = 0600