Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Aug 2005
    Posts
    21

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

    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. #2
    Member
    Join Date
    Aug 2005
    Posts
    21

    Default

    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. #3
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  4. #4
    Member dave9000's Avatar
    Join Date
    Apr 2003
    Location
    arkansas
    Posts
    891
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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
    Dave Browning
    Intersite Technologies
    Greenbrier Ar
    dave@isitetech.com

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Quote Originally Posted by coalescefl
    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...
    You do have to configure MailScanner to delete spam, you know. Otherwise it simply tags spam for you to filter at the client end.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  6. #6
    Member
    Join Date
    Aug 2005
    Posts
    21

    Default

    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. #7
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,894
    cPanel/Enkompass Access Level

    Root Administrator

    Wink

    Kick me to get there.
    Fav cPlinks this week: Blog - cPanel & WHM 11.32 we love it! | cPanel University study for it! | Attracta is coming! we want this!

  8. #8
    Member
    Join Date
    Feb 2004
    Posts
    53

    Default

    Quote Originally Posted by chirpy View Post
    You do have to configure MailScanner to delete spam, you know. Otherwise it simply tags spam for you to filter at the client end.
    Hello Chirpy,

    Where I configure the MailScanner to delete Spam?

    Regards,

  9. #9
    Member
    Join Date
    Dec 2004
    Posts
    388

    Default

    Quote Originally Posted by WhiteBear View Post
    Hello Chirpy,

    Where I configure the MailScanner to delete Spam?

    Regards,
    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.

Similar Threads & Tags
Similar threads

  1. E-mails are marked as spam even by gmail
    By stormrider in forum E-mail Discussions
    Replies: 1
    Last Post: 02-11-2008, 07:15 AM
  2. mail server (exim) forwards mails marked as spam
    By hariskhan in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-11-2006, 01:33 AM
  3. my emails marked as spam
    By okanari in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-22-2006, 03:01 PM
  4. Mailscanner reject attachment
    By allenhui in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 11-25-2004, 07:29 AM
  5. all mails are marked as Spam
    By wipl_piyush in forum cPanel and WHM Discussions
    Replies: 29
    Last Post: 07-27-2004, 05:52 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube