Amavisd-new 2.7.0 doesn't respect personal "required_score" set [PATCH]

Renato Botelho rbgarga at gmail.com
Fri Aug 12 22:27:33 CEST 2011


Hello Mark

After I sent this email i started to investigate and found amavisd-new
doesn't support it, so, i decided to implement it.

Attached is the patch with changes i've made, i'm still testing it, and,
even if you won't commit it in upstream, i would like to hear your thoughts
about the change, since it's the first time i touch amavis code.

Regards

On Thu, Aug 11, 2011 at 5:28 PM, Renato Botelho <rbgarga at gmail.com> wrote:
> I recently installed amavisd-new 2.7.0 and configured it to respect
> spamassassin user preferences:
>
> @sa_userconf_maps = (
>  {
>    ".$mydomain"  => 'sql:',
>    "$myhostname" => 'sql:'
>  }
> );
>
> # Remove domain name from email to reach user preferences
> @sa_username_maps = new_RE(
>  [ qr'^([^@]+)@.*$'i => '${1}' ]
> );
>
> I enabled sa_debug and i see it's respecting users preferences
> to check the email, but, if user set required_score on mysql to
> 6 and i set $sa_tag2_level_deflt to 4 on amavisd.conf, if an email
> is scored to 5, it's marked as spam.
>
> Other thing i noted is X-Spam-Status: header always shows
> required=4, the value I added on $sa_tag2_level_deflt.
>
> Same thing happens if user set required_score to 500 and an
> email is scored 10, it's marked as spam also.
>
> Am I missing something or it's an expected behavior?
>
> Thanks in advance
> --
> Renato Botelho
>



-- 
Renato Botelho
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amavisd.diff
Type: application/octet-stream
Size: 6037 bytes
Desc: not available
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20110812/756a66cf/attachment.obj>


More information about the amavis-users mailing list