Forum Stats

  • 3,782,456 Users
  • 2,254,650 Discussions
  • 7,880,082 Comments

Discussions

integrating spamassassin in messaging server 7.0.5.31.0

2923667
2923667 Member Posts: 9

Hello,

I'm trying to integrate SpamAssassin to my messaging server deployment.

The version of messaging server is :

./imsimta version

Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May  5 2014)

And here is what i done :

in the imta.cnf I added :

! ims-ms

ims-ms defragment notices 1 7 14 21 28 backoff "pt5m" "pt10m" "pt30m" "pt1h" "pt2h" "pt4h" maxjobs 2 pool IMS_POOL fileinto [email protected]$D destinationspamfilter1optin Spam

ims-ms-daemon

in the option.dat i added :

! For SpamAssassin

spamfilter1_config_file=/opt/sun/comms/messaging64/config/spamassassin.opt

spamfilter1_library=/opt/sun/comms/messaging64/lib/libspamass.so

spamfilter1_optional=1

spamfilter1_string_action=data:, require ["editheader","fileinto"];spamadjust "$U"; addheader "Spam-Score" "$U"; fileinto "Spam";

in the spamassassin.opt :

debug=1

host=127.0.0.1

port=783

mode=2

field=

and for convergence i activated the Spam folder.

My problem is that all my emails are directed in the folder "Spam" either it's a spam (score > 5.0) or it's not (score < 5.0)

Please tell me what have i done wrong.

Marouane.

Tagged:

Answers

  • Kellyc-Oracle
    Kellyc-Oracle Member Posts: 235
    edited Apr 19, 2015 10:16PM

    In the sieve script specified by spamfilter1_string_action, you both spamadjust "$U"; addheader "Spam-Score" "$U";   and  fileinto "Spam";

    The first two are reasonable to do unconditionally because the effect of doing them includes the value of $U.

    But unconditionally doing the fileinto is unconditionally doing the fileinto.

    The sieve script needs to include logic to decide whether or not to do the fileinto.

This discussion has been closed.