The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MailScanner: How to Auto Reject E-mails Marked With SPAM?

Discussion in 'E-mail Discussions' started by coalescefl, Oct 17, 2006.

  1. coalescefl

    coalescefl Member

    Joined:
    Aug 16, 2005
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Does anyone know how to automatically reject E-mails marked with SPAM via SSH using MailScanner?

    We have MailScanner installed, just can't figure out how to stop the SPAM from getting into the inbox....

    Thank you!
     
  2. coalescefl

    coalescefl Member

    Joined:
    Aug 16, 2005
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    After one of our clients immidiatly received 3,000 SPAM messages after we setup MailScanner we removed the software. Spam Assasin is at least deleting the messages... Now Exim and Spamd are having major issues... Failing every 10 minutes or so...
     
  3. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    Here is your solution

    go into WHM, addons,MailScanner and open the mailscanner config, scroll down to this section and enter delete in the boxes


    Spam Actions = delete


    High Scoring Spam Actions = delete

    This will automatically delete anything mailscanner marked as spam

    These instructions are assuming your running chirpys paid install which I highly recommend as it will stop almost all the spam and viruses and most of the phishing mail

    If you are not running the paid install of mailscanner locate the mailscanner.conf and manually edit it with your favorite editor in SSH

    There are also many other options that you can edit to tweak the filters to your individual needs
     
  4. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    16
    Location:
    arkansas
    cPanel Access Level:
    Root Administrator
    you can also add this to your exim.conf to stop a lot of spam from ever being accepted into your system.

    Adjust the RBL urls to suit your individual needs

    check_recipient:
    # Exim 3 had no checking on -bs messages, so for compatibility
    # we accept if the source is local SMTP (i.e. not over TCP/IP).
    # We do this by testing for an empty sending host field.
    accept hosts = :

    deny message = Message rejected - $sender_fullhost is in an RBL, see $dnslist_text
    !hosts = +relay_hosts
    !authenticated = *
    dnslists = bl.spamcop.net : sbl.spamhaus.org
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You do have to configure MailScanner to delete spam, you know. Otherwise it simply tags spam for you to filter at the client end.
     
  6. coalescefl

    coalescefl Member

    Joined:
    Aug 16, 2005
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the replies guys. I was wondering if there was a guide or something to help with the MailScanner... We've since removed it because our server was acting funny, but we're thinking of trying it again possibly...
     
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,480
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  8. WhiteBear

    WhiteBear Well-Known Member

    Joined:
    Feb 19, 2004
    Messages:
    53
    Likes Received:
    0
    Trophy Points:
    6
    Hello Chirpy,

    Where I configure the MailScanner to delete Spam?:confused:

    Regards,
     
  9. abubin

    abubin Well-Known Member

    Joined:
    Dec 7, 2004
    Messages:
    393
    Likes Received:
    1
    Trophy Points:
    18
    Look in -

    /usr/mailscanner/etc/rules/spam.action.rules
    /usr/mailscanner/etc/rules/spamhigh.action.rules

    Each domain have it's own rules. You can change them to delete, store, default or deliver. Or any combination of them. I set them to delete and store.

    This way the spams will not be delivered to the users and will also be stored in the server.
     
Loading...

Share This Page