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 to block all email with a specific subject line?

Discussion in 'Plesk for Linux - 8.x and Older' started by Mateo1041, Jun 1, 2006.

  1. Mateo1041

    Mateo1041 Guest

    0
     
    Hi everyone,

    I've been getting a lot of spam daily and it all has the exact same subject line. Is there a way to block emails based on the subject in Plesk? How about through SSH? I could only find ways to block domains which is pointless.

    Thanks,
    - Matt.
     
  2. Mateo1041

    Mateo1041 Guest

    0
     
    Anyone? Or can Plesk not block emails in this manner? Or would this be something I'd need to set up via SSH instead?
     
  3. jamesyeeoc

    jamesyeeoc Guest

    0
     
    If you are running spamassassin (and some antivirus other than DrWeb), you may want to check out ART's version of the qmail-scanner package, it has that feature
     
  4. linuxman21

    linuxman21 Guest

    0
     
    Blocking Subjects With Spamassassin

    To make up a Spamassassin rule to block certain emails via SSH with the same subject line try this...

    #touch /etc/mail/spamassassin/custom_rule.cf

    Then add the following to the new file...

    header LOCAL_EVERYTHINGYOUNEED_RULE Subject=~ /Everything you need, you can find here/i
    score LOCAL_EVERYTHINGYOUNEED_RULE 3.0
    describe LOCAL_EVERYTHINGYOUNEED_RULE Everything you need

    After your done test the new changes by running the following...

    #spamassassin -D --lint

    #service spamassassin restart
     
  5. Mateo1041

    Mateo1041 Guest

    0
     
    Thanks for the reply! I'm finally getting around to this and just created a custom rule for a certain drug.

    1) It looks like I can just duplicate the three required lines and create multiple rules. But can I use an OR statement to assign multiple drug subject lines to a single drug rule for example?

    2) When restarting spamassassin, I'm getting the following:

    Code:
    [root@vps3019 spamassassin]# service spamassassin restart
    spamassassin: unrecognized service
    Yet I know spamassassin is working on Plesk and it shows as being enabled. Any ideas?

    3) When I do the spamassassin -D --lint command, everything looks good. But I noticed the following line:

    Code:
    debug: bayes: no dbs present, cannot scan: /root/.spamassassin/bayes_toks
    Does this mean Bayesian scanning is not turned on? It probably should be, but I'm not quite sure how to do that. Any help would really be appreciated. :)

    - Matt.
     
  6. Mateo1041

    Mateo1041 Guest

    0
     
    Anyone have any ideas? Thanks.
     
  7. Mateo1041

    Mateo1041 Guest

    0
     
    It looks like the subject filter I set up did not work either. The emails are still coming through. :-(
     
  8. ewtech

    ewtech Guest

    0
     
  9. Mateo1041

    Mateo1041 Guest

    0
     
    I'm surprised spam controls aren't built in to Plesk. And no one seems to know how to filter by subject.

    I can probably figure out standard SpamAssassin stuff, but Plesk seems to always have its own way of doing things.
     
  10. systron

    systron Guest

    0
     
    Spam with specific subject

    Daily I am monitoring Spam comes with some specific words in subject line, Can some one tell how to either block mails or update spam rules it to declare spam as soon as it starts spams.
     
Loading...