
특정 도메인으로 전달되는 이메일에 할당된 스팸 점수 제한을 낮추기 위해 SpamAssassin(amavisd와 콤보로 실행)을 구성하려고 합니다( RCPT TO
*@example.com으로 읽는 수신 메일에 대해서만 require_score를 낮춤).
특정 도메인에 속한 각 사용자에 대해 SpamAssassin을 사용자별로 맞춤화하지 않고도 이 동작을 수행할 수 있습니까?
답변1
Amavisd와 함께 Spam Assassin을 사용하는 경우,그러면 amavisd는 매개변수를 사용하지 않습니다 required_score
스팸 점수 한도를 결정합니다. 대신에 amavis는 여기서 3단계의 점수를 가지고 있습니다.
$sa_tag_level_deflt = 1; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.2; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 6.9; # triggers spam evasive actions (e.g. blocks mail)
필요에 맞게 이 점수를 조정할 수 있습니다. 세 가지 설정을 살펴보려면 amavisd 문서를 참조하세요.
이제 특정 수신자에 대해 위의 숫자를 조정하는 방법에 중점을 둡니다. 이제 다음을 사용할 수 있습니다.Amavis에서 제공하는 지도, 이것 좀 봐amavisd.conf 샘플.
# advanced example specifying per-recipient values using a hash lookup:
#@spam_tag_level_maps = (\$sa_tag_level_deflt); # this is a default
#@spam_tag2_level_maps = (
# { '[email protected]' => 8.0, '.example.com' => 6.0 },
# \$sa_tag2_level_deflt, # catchall default
#);
#@spam_kill_level_maps = (
# { '[email protected]' => 8.0, '.example.com' => 6.0 },
# \$sa_kill_level_deflt, # catchall default
#);
#@spam_dsn_cutoff_level_maps = (
# { '[email protected]' => 10, '.example.com' => 15 },
# \$sa_dsn_cutoff_level, # catchall default
#);