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!

Block Spam

Discussion in 'E-mail Discussion' started by rikardoroa, Sep 12, 2017.

  1. rikardoroa

    rikardoroa Registered

    Joined:
    Sep 12, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    colombia
    cPanel Access Level:
    Root Administrator
    hello i have a problem with my mail server account from a specific account from my server, i need some spamassassin code that´s relays or block this message :

    Mail delivery failed: returning message to sender

    i found some specific spamassasin code, it seems that helps, the code is this:
    Code:
    # SACONFIGSTART
    
    # Make sure we get the required score header.
    
    rewrite_header subject [SPAM] (_SCORE_)
    
    # SACONFIGEND
    
    
    # SA RULES GO HERE
    
    add_header all Score _SCORE_
    
    bayes_auto_learn 1
    
    bayes_auto_learn_threshold_nonspam -0.1
    
    bayes_auto_learn_threshold_spam 6.0
    
    bayes_min_ham_num 200
    
    bayes_min_spam_num 200
    
    ok_languages en
    
    ok_locales en
    
    report_safe 2
    
    required_score 5
    
    score AWL 0.00
    
    score BAYES_50 0.4
    
    score DCC_CHECK 8.0
    
    score DCC_REPUT_13_19 0 -0.1 0 -0.1
    
    score DKIMDOMAIN_IN_DWL 0 -3.5 0 -3.5
    
    score DKIMDOMAIN_IN_DWL_UNKNOWN 0 -0.01 0 -0.01
    
    score DKIM_VALID -0.1
    
    score DKIM_VALID_AU -0.1
    
    score DNS_FROM_AHBL_RHSBL 4.7
    
    score DNS_FROM_RFC_BOGUSMX 3.7
    
    score FORGED_YAHOO_RCVD 3.7
    
    score FREEMAIL_FROM 2.7
    
    score HELO_DYNAMIC_DHCP 1.4
    
    score HELO_DYNAMIC_IPADDR2 3.6
    
    score HELO_DYNAMIC_SPLIT_IP 3.5
    
    score HK_RANDOM_ENVFROM 2.7
    
    score KHOP_DYNAMIC 1.7
    
    score LOTS_OF_MONEY 3.0
    
    score MISSING_MIMEOLE 2.7
    
    score NO_DNS_FOR_FROM 2.7
    
    score NUMERIC_HTTP_ADDR 6
    
    score PYZOR_CHECK 12
    
    score RAZOR2_CHECK 10.5
    
    score RCVD_IN_BL_SPAMCOP_NET 4.7
    
    score RCVD_IN_BL_SPAMCOP_NET 4.7
    
    score RCVD_IN_DNSWL_HI 0 -5 0 -5
    
    score RCVD_IN_DNSWL_LOW -1.0
    
    score RCVD_IN_DNSWL_LOW 0 -0.7 0 -0.7
    
    score RCVD_IN_DNSWL_MED 0 -2.3 0 -2.3
    
    score RCVD_IN_DNSWL_NONE 0 -0.0001 0 -0.0001
    
    score RCVD_IN_IADB_DK 0 -0.223 0 -0.095 # n=0 n=1 n=2
    
    score RCVD_IN_IADB_DOPTIN 0 -4 0 -4
    
    score RCVD_IN_IADB_DOPTIN_LT50 0 -0.001 0 -0.001 # n=0 n=1 n=2
    
    score RCVD_IN_IADB_LISTED 0 -0.380 0 -0.001 # n=0 n=2
    
    score RCVD_IN_IADB_MI_CPR_MAT 0 -0.332 0 -0.000 # n=0 n=1 n=2
    
    score RCVD_IN_IADB_ML_DOPTIN 0 -6 0 -6
    
    score RCVD_IN_IADB_OPTIN 0 -2.057 0 -1.470 # n=0 n=1 n=2
    
    score RCVD_IN_IADB_OPTIN_GT50 0 -1.208 0 -0.007 # n=0 n=2
    
    score RCVD_IN_IADB_RDNS 0 -0.167 0 -0.235 # n=0 n=1 n=2
    
    score RCVD_IN_IADB_SENDERID 0 -0.001 0 -0.001 # n=0 n=2
    
    score RCVD_IN_IADB_SPF 0 -0.001 0 -0.059 # n=0 n=2
    
    score RCVD_IN_IADB_UT_CPR_MAT 0 -0.095 0 -0.001 # n=0 n=1 n=2
    
    score RCVD_IN_IADB_VOUCHED 0 -2.2 0 -2.2
    
    score RCVD_IN_MSPIKE_H2 0.001 -1.772 0.001 -1.772
    
    score RCVD_IN_MSPIKE_H3 -0.01
    
    score RCVD_IN_MSPIKE_H3 0.001 -0.010 0.001 -0.010
    
    score RCVD_IN_MSPIKE_H4 -0.01
    
    score RCVD_IN_MSPIKE_H4 0.001 -0.010 0.001 -0.010
    
    score RCVD_IN_MSPIKE_H5 -1.0
    
    score RCVD_IN_MSPIKE_H5 0.001 -1.000 0.001 -1.000
    
    score RCVD_IN_MSPIKE_WL -0.01
    
    score RCVD_IN_MSPIKE_WL 0.001 -0.010 0.001 -0.010
    
    score RCVD_IN_NJABL_SPAM 4.7
    
    score RCVD_IN_RP_CERTIFIED 0.0 -3.0 0.0 -3.0
    
    score RCVD_IN_RP_SAFE 0.0 -2.0 0.0 -2.0
    
    score RCVD_IN_SBL_CSS 15.0
    
    score RCVD_IN_SORBS_DUL 5
    
    score RCVD_IN_XBL 4.7
    
    score RDNS_DYNAMIC 11.7
    
    score RDNS_NONE 4.7
    
    score RP_MATCHES_RCVD -1.302 -2.499 -1.302 -2.499
    
    score SPF_HELO_SOFTFAIL 0 1.002 0 3.140
    
    score URIBL_JP_SURBL 15.0
    
    
    # TXREP Plugin
    
    txrep_spf 1
    
    txrep_whitelist_out 10
    
    
    # Flags
    
    use_auto_whitelist o
    
    use_bayes 1
    
    use_bayes_rules 1
    
    use_razor2 1
    
    
    # Whitelist Rules
    
    whitelist_from *@*.github.com
    
    whitelist_from *@sgmail.github.com
    
    whitelist_from bingwmc@microsoft.com
    
    whitelist_from emailreceipts@authorize.net
    
    whitelist_from no-reply@jetpack.me
    
    whitelist_from notify@twitter.com
    
    whitelist_from *@gmail.com
     
  2. rikardoroa

    rikardoroa Registered

    Joined:
    Sep 12, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    colombia
    cPanel Access Level:
    Root Administrator
    i am working with cpanel and spamassassin
     
  3. rikardoroa

    rikardoroa Registered

    Joined:
    Sep 12, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    colombia
    cPanel Access Level:
    Root Administrator
    i set this score rules:

    Code:
    score ANY_BOUNCE_MESSAGE 99.0
    score BOUNCE_MESSAGE 99.0


    Will these rules serve?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,378
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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