Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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

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

  1. coalescefl

    coalescefl Member

    Joined:
    Aug 16, 2005
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    151
    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!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. coalescefl

    coalescefl Member

    Joined:
    Aug 16, 2005
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    151
    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...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    168
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. dave9000

    dave9000 Well-Known Member

    Joined:
    Apr 7, 2003
    Messages:
    891
    Likes Received:
    1
    Trophy Points:
    168
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. coalescefl

    coalescefl Member

    Joined:
    Aug 16, 2005
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    151
    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...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,345
    Likes Received:
    403
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. WhiteBear

    WhiteBear Well-Known Member

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

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

    Regards,
     
  9. abubin

    abubin Well-Known Member

    Joined:
    Dec 7, 2004
    Messages:
    402
    Likes Received:
    3
    Trophy Points:
    168
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice