[exim] $message_size and spamassissin

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Johann Spies
Data:  
Para: exim-users
Asunto: [exim] $message_size and spamassissin
I have the following in the exim configuration:

warn message = X-Spam-Score: $spam_score ($spam_bar)
          condition = ${if <{$message_size}{100k}{1}{0}}
          hosts = ! +relay_from_hosts
          spam = spamd:true


warn message = X-Spam-Status: YES
          hosts = ! +relay_from_hosts
          condition = ${if <{$message_size}{100k}{1}{0}}
          condition = ${if >{$spam_score_int}{80}{1}{0}}
          spam = spamd:true


warn message = X-Spam-Status: NO
          hosts = ! +relay_from_hosts
          condition = ${if <{$message_size}{100k}{1}{0}}
          condition = ${if <{$spam_score_int}{80}{1}{0}}
          spam = spamd:true


warn message = X-Spam-Report: \n $spam_report
          hosts = ! +relay_from_hosts
          condition = ${if <{$message_size}{100k}{1}{0}}
          spam = spamd:true



# reject messages that score more than 8
   deny message = Message viewed as spam....
#             (snipped)
          hosts = ! +relay_from_hosts
         spam = spamd:true
          condition = ${if eq{$acl_m0}{t}{yes}{no}}
          condition = ${if <{$message_size}{100k}{1}{0}}
          condition = ${if >{$spam_score_int}{80}{1}{0}}
          log_message = SPAM: Message viewed as spam. (scored $spam_score)


As I understand this configuration, messages should not be handed over
to spamd if the $message_size is 100k or more.

However when I sort the entries in /var/log/mail.info according to
size, I see the following:

$ grep result /var/log/mail.info | grep -o 'size=[0-9]\+' | awk -F= '{print $2}' | sort -nr | head -n 10
9982961
7566296
7489098
7488938
7358283
6617611
6187988
6093274
5743015
5658670

and with a 'tail -n 10':

835
821
817
803
801
799
759
759
721
662

Apparently my configuration does not prevent large emails to be
scanned by spamassassin. What is wrong with my configuration?

Regards
Johann
-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch


     "What doth it profit, my brethren, though a man say he
      hath faith, and have not works? can faith save him? If
      a brother or sister be naked, and destitute of daily
      food, And one of you say unto them, Depart in peace,
      be ye warmed and filled; notwithstanding ye give them
      not those things which are needful to the body; what
      doth it profit? Even so faith, if it hath not works,
      is dead, being alone."          James 2:14-17