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!

Exim System Filter to Block Forwarded E-Mails to Specific Destinations

Discussion in 'E-mail Discussion' started by Echelon17, Mar 11, 2019.

  1. Echelon17

    Echelon17 Well-Known Member

    May 21, 2006
    Likes Received:
    Trophy Points:
    I would like to create a custom Exim system filter that can prevent e-mails from being forwarded to certain domains, such as, etc. Is this possible? I've looked through the Exim documentation and there's nothing listed about SRS variables, and I can't seem to determine how Exim would realise an e-mail is being forwarded. If it's helpful, I have SRS enabled within WHM.

    Thank you for any assistance.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello @Echelon17,

    We document how to create a custom Exim system filter rule on the link below:

    How to Customize the Exim System Filter File - cPanel Knowledge Base - cPanel Documentation

    While it's outside our scope of support to develop a custom filter rule to blocks outgoing emails if they are both forwards and match a specific domain name, you may find the example on the following post helpful:

    Easiest way to block all outgoing mail to a domain

    This example demonstrates how to block all outgoing emails to a specific domain name. You'd have to adjust this rule to only apply to emails that were forwarded. If you need help developing the rule, the Exim-User's mailing list is often a useful resource:

    Exim-users Info Page

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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