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.

Anti-Spam Solution

Discussion in 'General Discussion' started by vlee, May 21, 2006.

  1. vlee

    vlee Well-Known Member

    Joined:
    Oct 13, 2005
    Messages:
    272
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    Las Vegas, Nevada, United Stat
    cPanel Access Level:
    Root Administrator
    I have spent many hours researching for ideas from many sources and I got some thing that works very well.

    I would like to share it with and you can give it try to and see if it works and to see if is some thing that you can put in a affect on your servers.

    Exim Configuration Editor Advanced Mode

    It's simple enough to add RBL checking in the exim configuration editor. Scroll down to the first set of three texboxes in a row. The second textbox will

    already contain ACLs and it is into this one that you need to add these two new ones. You need to add the following code after the following line with a

    clear empty line after each segment:

    Find Code:
    #!!# ACL that is used after the RCPT command
    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 = :


    Then enter the code below after accept hosts:

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

    Save the Exim Configuration file.

    -----------------------------------------------------------------------------------------------------------------------------------

    Make sure you do not have any duplicates of is listed below that is already active. Feel free to use what you want to use below.

    cd /etc/mail/spamassassin/
    wget http://www.rulesemporium.com/rules/72_sare_redirect_post3.0.0.cf
    wget http://www.rulesemporium.com/rules/70_sare_html0.cf
    wget http://www.rulesemporium.com/rules/70_sare_header0.cf
    wget http://www.rulesemporium.com/rules/70_sare_specific.cf
    wget http://www.rulesemporium.com/rules/70_sare_adult.cf
    wget http://www.rulesemporium.com/rules/99_sare_fraud_post25x.cf
    wget http://www.rulesemporium.com/rules/70_sare_random.cf
    wget http://www.rulesemporium.com/rules/70_sare_oem.cf
    wget http://www.rulesemporium.com/rules/70_sare_uri0.cf
    wget http://www.rulesemporium.com/rules/70_sare_stocks.cf
    wget http://www.rulesemporium.com/rules/70_sare_evilnum0.cf
    wget http://www.rulesemporium.com/rules/72_sare_bml_post25x.cf
    wget http://www.rulesemporium.com/rules/70_sare_spoof.cf
    wget http://www.rulesemporium.com/rules/70_sc_top200.cf
    wget http://www.rulesemporium.com/rules/70_sare_whitelist.cf
    wget http://www.rulesemporium.com/rules/70_sare_obfu.cf
    wget http://www.rulesemporium.com/rules/70_sare_html0.cf
    wget http://www.timj.co.uk/linux/bogus-virus-warnings.cf
    wget http://mywebpages.comcast.net/mkettler/sa/antidrug.cf
    wget http://www.rulesemporium.com/rules/backhair.cf
    wget http://www.rulesemporium.com/rules/chickenpox.cf
    wget http://ftp.vmhosting.com/spam/rules/list_sa.cf
    wget http://ftp.vmhosting.com/spam/rules/user_prefs.cf

    spamassassin -D --lint


    You also may want to restart server at this point.


    If you have spamassassin ebabled already you need to disable it and go in the file manager in cPanel and delete the .spamassassin directory.


    Once you done all this then go in to cPanel and activate Spamassassin.

    -------------------------------------------------------------------------------------------------------------------------------------

    Also another note for the default email address in the cPanel use the following.

    :fail:

    Do not use

    :fail: no such address here
     
    #1 vlee, May 21, 2006
    Last edited: May 22, 2006
  2. sint19

    sint19 Member

    Joined:
    Feb 16, 2003
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    great post,
    I added this to my favorites
    Do you have any solution how to find and protect server against scripts that send spam from your server .
     
  3. vlee

    vlee Well-Known Member

    Joined:
    Oct 13, 2005
    Messages:
    272
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    Las Vegas, Nevada, United Stat
    cPanel Access Level:
    Root Administrator
    If anyone else has proven results ideas that can be added to what I have below, please post them.

    Maybe all of us together can find a good solid way to fight this spam.

    One mind is ok.

    Three minds are better

    Many minds put together are great.
     
  4. jackie46

    jackie46 BANNED

    Joined:
    Jul 25, 2005
    Messages:
    537
    Likes Received:
    0
    Trophy Points:
    0
    Ye, you better be careful with all those rulesets and hope that your box can keep up with processing them all. The more rules you add the more resources, memory and CPU is required. Also, instead of providijng links like that users should be using the rules_du_jour update ruleset option and downloading the updates every night not installing them once and forgetting about them.

    I think your howto is a little behind the times im sorry to say. Every heard of rules_du_jour setup via a cron???? These rules can be automated and downloaded nightly, there is no need to wget anything!

    Listen, learn and education yourself, http://www.exit0.us/index.php?pagename=RulesDuJour

    Oh and one more thing, this anti spam solutions as you put it, has been posted hundreds of times not only on this forum but on many others. Why would you need to repost about it? Have you searched the forums here for a anti spam solution yet?

    But rules_du_jour is only a minute solution to spam. There are many more solutions.
     
    #4 jackie46, May 23, 2006
    Last edited: May 23, 2006
  5. vlee

    vlee Well-Known Member

    Joined:
    Oct 13, 2005
    Messages:
    272
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    Las Vegas, Nevada, United Stat
    cPanel Access Level:
    Root Administrator
    Thanks for your post. This was very helpful
     
  6. vlee

    vlee Well-Known Member

    Joined:
    Oct 13, 2005
    Messages:
    272
    Likes Received:
    6
    Trophy Points:
    18
    Location:
    Las Vegas, Nevada, United Stat
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page