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!

Can I filter emails before they are forwarded?

Discussion in 'E-mail Discussion' started by Corystes, Apr 18, 2019.

  1. Corystes

    Corystes Registered

    Joined:
    Apr 18, 2019
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Dorset
    cPanel Access Level:
    Website Owner
    I have a webmail account and a forwarder for the same email address to a gmail account.
    The email address is severely spammed. If I have filters on my webmail will they apply to forwarded emails, or is it an unfiltered copy that is forwarded? Need to do something as gmail has started to bounce some emails due to 'exceeding the max defers and failures per hour'.
     
  2. GOT

    GOT Get Proactive! PartnerNOC

    Joined:
    Apr 8, 2003
    Messages:
    1,353
    Likes Received:
    147
    Trophy Points:
    193
    Location:
    Chesapeake, VA
    cPanel Access Level:
    DataCenter Provider
    Your webmail rules would not apply to the email before they are forwarded.

    You should make sure spamassassin is on, and in the exim configuration, in the last section under spamassassin settings, there is two options that start with do not forward relating to spamassassin scores. Enable one of those. If you are going to use the first one, make sure that the settings at the very top regarding setting a spamassassin score is set to something reasonable like 8.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,005
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Corystes,

    I recommend contacting your web hosting provider to see if they can enable the following option in WHM >> Exim Configuration Manager >> Basic Editor:

    Do not forward mail to external recipients if it matches the Apache SpamAssassin™ internal spam_score setting

    This option allows Apache SpamAssassin to scan and reject messages in the forwarder queue with a higher spam score than Apache SpamAssassin's internal spam_score setting of 5.

    Otherwise, you'd need to delete the forwarder and setup a filter rule instead. You can create the filter so that it checks for spam-like conditions first, and then redirects the email to the forwarded address. You can read about filter rules on the links below:

    How to Configure Mail Filters - cPanel Knowledge Base - cPanel Documentation

    Thank you.
     
    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