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

SpamAssassin default to on for new mail accounts

Discussion in 'Plesk for Linux - 8.x and Older' started by danf@, Mar 22, 2008.

Thread Status:
Not open for further replies.
  1. danf@

    danf@ Guest

    0
     
    How can I make SpamAssassin default to "on" for new mail accounts for all domains? Currently, new accounts do not have SpamAssassin enabled. Doing this manually every time is tedious.

    Thanks.

    --df
     
  2. S.Celik

    S.Celik Guest

    0
     
    You can use Event Manager for this..
     
  3. shoggy24

    shoggy24 Regular Pleskian

    25
    57%
    Joined:
    Apr 5, 2007
    Messages:
    198
    Likes Received:
    0
    Celik, can you post the command to automate this process using event manager?
     
  4. S.Celik

    S.Celik Guest

    0
     
    click on "Add new event"

    Event: Mail account created
    Priority: lowest
    User: root
    Command:

    /usr/local/psa/bin/spamassassin.sh -u <new_mailname> -status true -hits 5.00 -modify-subj true -modify-subj-text [SPAM][_SCORE_] -reject-spam true

    my command sets score to 5 (you must use float here always!) and marks mail subjects as [SPAM][X.XX] and also deletes from user's inbox.

    if you only want to mark messages then use:

    /usr/local/psa/bin/spamassassin.sh -u <new_mailname> -status true -hits 5.00 -modify-subj true -modify-subj-text [SPAM][_SCORE_]
     
  5. shoggy24

    shoggy24 Regular Pleskian

    25
    57%
    Joined:
    Apr 5, 2007
    Messages:
    198
    Likes Received:
    0
    Works perfect, thanks
     
  6. danf@

    danf@ Guest

    0
     
    Specifically, the syntax is this, right? (I'm assuming yes, since it works.)

    /usr/local/psa/bin/spamassassin.sh -u $NEW_MAILNAME -status true

    I left out the other switches, so it will use the default.

    Thanks.

    --df
     
  7. S.Celik

    S.Celik Guest

    0
     

    Attached Files:

Thread Status:
Not open for further replies.
Loading...