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

How do I configure SpamAssassin via CLI

Discussion in 'Plesk for Linux - 8.x and Older' started by Swakoo, Jan 4, 2006.

  1. Swakoo

    Swakoo Guest

    0
     
    Is it possible to configure the spamassasin via CLI, as I didn't purchase the PLESK control panel for it?
     
  2. schatje

    schatje Guest

    0
     
    As i know, plesk keep configurations on database
    in sa_conf tables, u can add email address there

    INSERT INTO sa_conf (mailname,flt_enabled,rw_subject_tag,hits_required,spam_action) VALUES ('mymail@yourdomain.com','both','*****SPAM*****','5','save'),
    ('your@otherdomain.com','both','*****SPAM*****','5','save')

    and dont forget to put/modify .qmail file on
    /var/qmail/mailnames/yourdomain/mymail/ .qmail
    before:
    | true
    ./Maildir/
    after:
    | if [ -z "$SA" ]; then export SA=1; /usr/local/psa/bin/psa-spamc -f -u mymail@yourdomain.com -U /tmp/spamd_full.sock > spamcheck$$; /var/qmail/bin/qmail-local "$USER" "$HOME" "$LOCAL" "" "" "$HOST" "$SENDER" "$DEFAULT" < spamcheck$$; retval=$?; rm -f spamcheck$$; [ $retval = 0 ] && exit 99; exit $retval; fi # ACCEPT UCE
    | true
    ./Maildir/

    and make sure /etc/init.d/psa-spamassassin is start

    Hope this help you

    Schatje
    # I have bash script to modify .qmail files
     
  3. phoenixisp

    phoenixisp Silver Pleskian

    27
    57%
    Joined:
    Feb 2, 2002
    Messages:
    840
    Likes Received:
    0
    The .qmail files are useful only if you allow pre user settings. If you haven't purchased Plesk's version you need not worry so much about that. And you wouldn't have psa-spamassassin.

    The proper way to configure Spamassassin is to edit the local.cf file. You can also add rulesets to your install. Read more here:

    http://spamassassin.apache.org/
     
  4. Swakoo

    Swakoo Guest

    0
     
    The mysql root access will be the same as my Plesk login?
     
  5. Swakoo

    Swakoo Guest

    0
     
    yeah i figured. guess that since i am using plesk.. not much choice then...
     
  6. schatje

    schatje Guest

    0
     
    Yes..its same with Plesk login
     
Loading...