Re: [exim] condition problem

Góra strony
Delete this message
Reply to this message
Autor: W B Hacker
Data:  
Dla: exim-users
Temat: Re: [exim] condition problem
Vahric MUHTARYAN wrote:

> I made it like this but nothing changed
>
>
>    condition = ${if < {$message_size}{300K}}
>    warn    spam      = nobody:true
> #          condition = ${if <{$message_size}{1M}}
> #          condition = ${if < {$message_size}{300K}}
>            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


The warn verb precedes the body.

Make it like this:

     warn
         condition = ${if < {$message_size}{300K}}
              spam      = nobody:true
  #           condition = ${if <{$message_size}{1M}}
              condition = ${if < {$message_size}{300K}}
              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



You then also need an acl to determine what to do with the
oversize messages that this one should now NOT submit to spamd.

You can probably also get all you need into ONE header, not four.

Bill