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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Where are the spamassassin filtered emails?

Discussion in 'E-mail Discussions' started by silverbytes, Aug 4, 2017.

Tags:
  1. silverbytes

    silverbytes Member

    Joined:
    May 31, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    I have spamassasin on, and I have this preferences file. However I do NOT see any email tagged as spam.
    Where are they?
    I look at webmail's spam folder and it's empty.
    In my email client I do not get any spam either or emails tagged as spam.
    I pressed disable autodelete on cpanel to avoid being deleted from server.

    Can you help me discover where are the spam emails in order to see if it's working properly?

    my user prefs file looks like this


    Code:
    # SpamAssassin user preferences file.  See 'perldoc Mail::SpamAssassin::Conf'
    # for details of what can be tweaked.
    ###########################################################################
    
    # How many points before a mail is considered spam.
    # required_score  8
    
    # Whitelist and blacklist addresses are now file-glob-style patterns, so
    # "friend@somewhere.com", "*@isp.com", or "*.domain.net" will all work.
    # whitelist_from    someone@somewhere.com
    
    # Add your own customised scores for some tests below.  The default scores are
    # read from the installed spamassassin rules files, but you can override them
    # here.  To see the list of tests and their default scores, go to
    # http://spamassassin.apache.org/tests.html .
    #
    # score SYMBOLIC_TEST_NAME n.nn
    
    # Speakers of Asian languages, like Chinese, Japanese and Korean, will almost
    # definitely want to uncomment the following lines.  They will switch off some
    # rules that detect 8-bit characters, which commonly trigger on mails using CJK
    # character sets, or that assume a western-style charset is in use.
    #
    # score HTML_COMMENT_8BITS    0
    # score UPPERCASE_25_50        0
    # score OBSCURED_EMAIL          0.9
    
    # Speakers of any language that uses non-English, accented characters may wish
    # to uncomment the following lines.   They turn off rules that fire on
    # misformatted messages generated by common mail apps in contravention of the
    # email RFCs.
    
    # score SUBJ_ILLEGAL_CHARS      0.5
    
    
    
    #Custom rules from here
    
    
    required_score  9
    rewrite_header Subject          *SPAM*
    
    
    add_header all
    blacklist_from *@portaldeofertas.com.ar
    blacklist_from *@portaldeofertas.com
    blacklist_subject Replica
    blacklist_subject ScanJet
    blacklist_subject Viagra
    blacklist_subject Watch
    required_score 1
    whitelist_from *@aguadoceresidence.com.br
    whitelist_subject 4 Ilhas
    whitelist_subject Deseo Informacionsobre suscripcion
    whitelist_subject Divulgar
     
    #1 silverbytes, Aug 4, 2017
    Last edited by a moderator: Aug 4, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can send a GTUBE test message to verify SpamAssassin is working via the instructions at:

    SpamAssassin: The GTUBE

    Check to see if the test SPAM message is delivered to the inbox of the account.

    Thank you.
     
  3. silverbytes

    silverbytes Member

    Joined:
    May 31, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    151
    Thanks. I saw that information but I didn't understand what to do at all really...
    Still clueless...
     
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    329
    Likes Received:
    94
    Trophy Points:
    28
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Where your spamassassin filtered mail will end up is dependent on how you have set up the service in Tweak settings and in the cPanel settings for that domain.

    With respect to webmail - you may need to configure Horde to look in the .spam folder for filtered mail rather than in the .Junk folder (which I think is the default) - the problem here is that the .spam folder doesn't actually exist until it has had some spam mail filtered into it by spamassassin.

    Additionally, you may configure Horde to filter mails to any folder you specify, but this is not part of spamassassin

    In your file manager, you should be looking for folders marked .spam (if you have enabled it) or .Junk if you haven't.

    Full details of how it all works are available at Apache SpamAssassin - Documentation - cPanel Documentation
     
Loading...

Share This Page