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.

[case 60473] Scan Outgoing email not working in Cpanel

Discussion in 'E-mail Discussions' started by wwwcad, Apr 19, 2012.

  1. wwwcad

    wwwcad Member

    Joined:
    Oct 4, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Looking for a solution to enable the scanning of outgoing email, i tried the wiki

    Scan Outgoing Mail for Spam

    but that's not working.

    Anyone with a solution.
     
  2. wwwcad

    wwwcad Member

    Joined:
    Oct 4, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    re: [case 60473] Scan Outgoing email not working in Cpanel

    No one? Cpanel answer?
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    re: [case 60473] Scan Outgoing email not working in Cpanel

    Are you on cPanel 11.30 or on cPanel 11.32 currently?

    Code:
    cat /usr/local/cpanel/version
     
  4. cesarlwh

    cesarlwh Well-Known Member

    Joined:
    Sep 23, 2008
    Messages:
    61
    Likes Received:
    0
    Trophy Points:
    6
    re: [case 60473] Scan Outgoing email not working in Cpanel

    I need to use this too, I am using cPanel 11.32 how to configure the spamassassin to SCAN Outgoing emails?

    And how to create outsite cpanel rules for all domains to block SPAM outgoing from my server?
     
  5. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    983
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    re: [case 60473] Scan Outgoing email not working in Cpanel

    Those instructions needs to be modified to work with cPanel 11.32.x since the interface had changed quite a bit.

    I also want to add: what exactly happens when those settings are applied? Are the spam messages blocked, deleted, or does the server admin just get a notice about the spam?
     
  6. cPGoodJosh

    cPGoodJosh Member
    Staff Member

    Joined:
    Mar 6, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Houston
    cPanel Access Level:
    Root Administrator
    re: [case 60473] Scan Outgoing email not working in Cpanel

    Hello all,

    I have some steps so you can get those rules added to your exim configuration in 11.32, however I have been unable to get it to work for detecting SPAM (at least with the GTUBE test).

    1) Log in to WHM
    2) Go to Main >> Service Configuration >> Exim Configuration Manager
    3) Click on the "Advanced Editor" tab
    4) From the very top, scroll down until you see the button labeled "Add additional configuration setting", and click on that button
    5) Type in "acl_not_smtp" in to the first box
    6) Type "check_local" in to the second box
    7) Scroll down until you see "acl_not_smtp"
    8) In the box right after "custom_begin_not_smtp" put the following in to it:

    check_local:
    deny message = This message contains malware ($malware_name)
    demime = *
    malware = *

    deny message = This message was classified as SPAM
    spam = nobody

    accept

    (refer to the screen shot attached if you're having problems finding the right place)

    9) Scroll all the way down and click on "Save"

    After you do that, if you test it with the EICAR test file, you should notice that the email doesn't get send out. The error in the exim logs will look like this:

    Error while reading message with no usable sender address (R=<redacted>): rejected by non-SMTP ACL: This message contains malware ()


    EICAR test file - Wikipedia, the free encyclopedia

    Summary:

    With those steps, the malware test file gets caught, but not the spam test string.

    View attachment 12062
     
  7. wemnael

    wemnael Member

    Joined:
    Oct 23, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    re: [case 60473] Scan Outgoing email not working in Cpanel

    I tried steps indicated by cPGoodJosh , tried to send a test email via SMTP with EICAR test file attached, but malware test file is still there and filter seems NOT to work. I have last cPanel version.
     
  8. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    re: [case 60473] Scan Outgoing email not working in Cpanel

    case 60473 is planned to add official support for this functionality (as well as outgoing malware scanning of non-smtp messages .. if enabled) The support is current written and awaiting code review.
     
  9. wwwcad

    wwwcad Member

    Joined:
    Oct 4, 2006
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    Ok, i did it myself and Joshua is right. In 11.32 you should add the params in custom_begin_not_smtp but avoid check_local, the rules are already under check_not_smtp

    ONLY IF YOU HAVE CLAMAV CONNECTOR USE THE RULE:

    deny message = This message contains malware ($malware_name)
    demime = *
    malware = *

    ONLY IF YOU HAVE SPAM ASSASIN USE THE RULE

    deny message = This message was classified as SPAM
    spam = nobody

    accept

    Regards
     
Loading...

Share This Page