1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Adding.cf files for Spam Assassin

Discussion in 'Plesk for Linux - 8.x and Older' started by rgrundy, Sep 18, 2006.

  1. rgrundy

    rgrundy Guest

    Does anyone have a clue on how to install the .cf files for spamassassin and get them to work in Plesk?

    I have followed the docs explicitly on:


    I cannot get spamassassin to recognize these rulesets. Can anyone provide a how-to explain what I am doing wrong@!

    Ryan Grundy
    Atomic 55 Internet Technologies Inc.
  2. tnats@

    tnats@ Guest

    Did you get this figured out?

    I am trying very simple rules to no affect. I restart spamassassin and nothing. I go to a debian box without plesk and my same exact rule works fine.

    plesk1:/etc/spamassassin# more custom_rule.cf
    body DEMO /test/i
    score DEMO 9

    plesk1:/etc/spamassassin# /etc/init.d/psa-spamassassin restart
    Shutting down psa-spamassassin service: done
    Starting psa-spamassassin service: done

    Any emails coming in with test in the body should get tagged. I've tried all sorts of different ways and it won't tag them and in the email headers, it doesn't say the rule is being used.

    Yet, I take this exact rule, copy and paste it into a debian machine NOT running plesk and it works great. (even without restarting spamassassin)

    Any ideas?
  3. mooiesite

    mooiesite Basic Pleskian

    Jun 17, 2006
    Likes Received:
    for some reason you have to stop and start all psa services
    /etc/init.d/psa stopall
    /etc/init.d/psa start
  4. tnats@

    tnats@ Guest

    plesk1:/etc/spamassassin# more custom_rule.cf
    body DEMO /test/i
    score DEMO 9

    plesk1:/etc/spamassassin# /etc/init.d/psa stopall
    Stopping domain name service: named.
    Stopping MySQL database server: mysqld.
    /etc/init.d/psa start
    qmail-remote: no process killed
    qmail-remote: no process killed
    Stopping Courier-IMAP server:
    Stopping imap done
    Stopping imap-ssl done
    Stopping pop3 done
    Stopping pop3-ssl done

    Stopping PostgreSQL database server: postmaster.
    Shutting down psa-spamassassin service: done
    Stopping web server: Apache2.
    plesk1:/etc/spamassassin# /etc/init.d/psa start
    Starting internet superserver: inetd.
    Starting domain name service: named.
    Starting MySQL database server: mysqld.
    Checking for crashed MySQL tables in the background.
    Starting qmail: done
    Starting Courier-IMAP server:
    Starting imapd done
    Starting imap-ssl done
    Starting pop3 done
    Starting pop3-ssl done

    Starting PostgreSQL database server: postmaster.
    Starting psa-spamassassin service: done
    Processing config directory: /opt/psa/admin/conf/httpsd.*.include
    /opt/psa/admin/bin/httpsdctl start: httpd started
    Starting Plesk: done

    No, score=6.6 required=7.0 tests=AWL,DEMO,RCVD_BY_IP autolearn=no version=3.0.3

    My email had:

    in the body

    I just don't get it...