[exim] Problem with .forward

Top Page
Delete this message
Reply to this message
Author: laurent ducos
Date:  
To: exim-users
Subject: [exim] Problem with .forward
Hello.
I'm french user of exim4 and i apologize for my bad English.
I configured exim4 with clamav and spamassassin on Debian.
Clamav :

   deny
     malware = *
     message = This message was detected as possible malware ($malware_name).


And Spamassassin :

   accept
      condition = ${if >={$message_size}{500k}{yes}{no}}
   warn
     spam = nobody:true
     message = X-Spam_score: $spam_score\n\
               X-Spam_score_int: $spam_score_int\n\
               X-Spam_bar: $spam_bar\n\
               X-Spam_report: $spam_report
   deny
      message = This message scored $spam_score spam points.
      spam = nobody:true
      condition = ${if >{$spam_score_int}{120}{1}{0}}


I'm doing tests with viruses, and spam testing and everything works well.
The problem is with the .forward

      # Exim filter
if error_message then
        finish
endif


if $h_X-Spam_score_int is above 50 then
     save Maildir/.junkmail/
     finish
endif
finish


The problem is with the .forward. When I receive a local mail or mail with
attachments, I get a *Mail Delivery System,
*

An error has been found in your .forward file.


If someone knows the solution to this problem