Daemonize Spamassassin in ISPConfig

Discussion in 'General' started by binover, Mar 22, 2008.

  1. binover

    binover New Member

    Hi to all
    I start working in 2 servers a few days ago, and I noted that had a lot of threads in TOP that call the same time to spamassassin, I read en Google thats spamassassin can work like Client - Server, but I never use ISPConfig before and I dont know if its possible. Can anyone help me?

    Thanks a lot and sorry for my English.
     
  2. falko

    falko Super Moderator Howtoforge Staff

  3. binover

    binover New Member

    Thanks Falko,
    I do everything is in the post but something strange happen...
    In TOP spamd appear but also spamassassin...

    9261 user1 25 0 28808 25m 4312 R 35.9 2.9 2:00.54 spamd
    9260 user1 25 0 27584 24m 4312 R 34.9 2.7 8:35.05 spamd
    1773 user2 18 0 23660 20m 3896 R 28.2 2.4 0:01.14 spamassassin

    And, you can see, spamd consumes a lot of CPU, just like spamassassin.

    Any idea?

    thanks a lot!!!!!!!!!!!!.
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    You will have to edit every user, cahnge a settings and save it. Otherwise the user will still use spamassassin and not spamd. Its normal that spamd consumes a lot of CPU, but it is less then spamassassin would consume for the same amount of emails.
     
  5. binover

    binover New Member

    Hi
    I did change the users settings, but the server have a very strange behavior, Some times see in TOP the same user working with SPAMD and/or SPAMASSASSIN. The version on this ISPConfig is 2.2.18, in other server I have the version 2.2.13, can I do this without update?

    Very thanks to all.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please do what I posted above.
     
  7. binover

    binover New Member

    Hi till
    To change the users configuration I modify /root/ispconfig/isp/conf/spamassassin.rc.master
    from this:

    :0fw
    * < 256000
    | /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --prefs-file={PREFS_FILE}

    to:


    :0fw
    * < 256000
    | /usr/bin/spamc

    then I run "update isp_isp_user SET status = 'u' WHERE status = '';" in the database

    later I modify a user setting from the interface and that modify all the users settings

    I miss something?

    Many many thanks!!!

    pd: can I do this in a ISPCONFIG 2.2.13?
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Yes, that should work.
     
  9. binover

    binover New Member

    hi guys
    my trouble still persist, other thing I notice, spamd is not taking the .user_pref, but I think it will solved linking that file to user_pref (whitout dot).

    I don´t know why the same user use spamd or spamassassin. Any idea?

    Thanks a lot!
     
  10. falko

    falko Super Moderator Howtoforge Staff

    Have you checked the procmail recipes of that user?
     

Share This Page