21.09.2011 12:42, [email protected] пишет:


21.09.2011 11:37, Alexander Trotsai пишет:
On Wed, Sep 21, 2011 at 11:26:56AM +0300, [email protected] wrote:

а где тут вобщне балы и при чем тут экзим
если речь о балах спамассассина, добавляйте в залоговок
дополнительное поле и пользовательское правило в
спамассассин по этому заголовку


Этот Acl - из exim'a, значит имеет отношение к exim'y. Баллы - это те
баллы, которые добавляет спамассассин. Дык вопрос как раз в том, как это
делать? Пример можете подсказать?

Ну может как-то так:


SPAM_COLOR_GREEN        = 50
SPAM_COLOR_BLUE         = 100
SPAM_COLOR_YELLOW       = 150
SPAM_COLOR_ORANGE       = 200
SPAM_COLOR_RED          = 250
SPAM_SCORE_MARK         = 150
SPAM_SCORE_DROP         = 300

warn  add_header = X-Spam-Score: $spam_score
warn  add_header = X-Spam-Report: $spam_report

accept condition = ${if <{$spam_score_int}{SPAM_COLOR_GREEN} {1}}
      add_header = X-Spam-Flag: NO
      logwrite = Message mark as NO_COLOR

warn  condition = ${if >={$spam_score_int}{SPAM_SCORE_MARK} {1}}
      add_header = X-Spam-Bar: $spam_bar ($spam_score)
      add_header = X-Spam-Flag: YES
logwrite = SPAM message mark from $sender_host_address with score $spam_score_int

warn  condition = ${if >={$spam_score_int}{SPAM_COLOR_GREEN} {1}}
      condition = ${if <{$spam_score_int}{SPAM_COLOR_BLUE} {1}}
      add_header = X-Spam-Color: GREEN
      logwrite = Message mark as GREEN with score $spam_score_int

warn  condition = ${if >={$spam_score_int}{SPAM_COLOR_BLUE} {1}}
      condition = ${if <{$spam_score_int}{SPAM_COLOR_YELLOW} {1}}
      add_header = X-Spam-Color: BLUE
      logwrite = Message mark as BLUE with score $spam_score_int

warn  condition = ${if >={$spam_score_int}{SPAM_COLOR_YELLOW} {1}}
      condition = ${if <{$spam_score_int}{SPAM_COLOR_ORANGE} {1}}
      add_header = X-Spam-Color: YELLOW
      logwrite = Message mark as YELLOW with score $spam_score_int

warn  condition = ${if >={$spam_score_int}{SPAM_COLOR_ORANGE} {1}}
      condition = ${if <{$spam_score_int}{SPAM_COLOR_RED} {1}}
      add_header = X-Spam-Color: ORANGE
      logwrite = Message mark as ORANGE with score $spam_score_int

warn  condition = ${if >={$spam_score_int}{SPAM_COLOR_RED} {1}}
      add_header = X-Spam-Color: RED
      logwrite = Message mark as RED with score $spam_score_int

в результате на основании баллов SA строим свои оценки и предположения.


_______________________________________________
Exim-users mailing list
[email protected]
http://mailground.net/mailman/listinfo/exim-users

Ответить