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!

SOLVED best way to block specific attachment for one recipient domain only

Discussion in 'E-mail Discussion' started by jfall123, Dec 15, 2016.

  1. jfall123

    jfall123 Well-Known Member

    Oct 31, 2005
    Likes Received:
    Trophy Points:
    I have a case where a user with many email accounts under their domain wants to entirely block a common attachment extension (.ZIP). Although I've explained to them this is a bad idea, and ZIP files are not executable and that it comes down to end user education/virus protection yada yada they still want to block this extension.

    Obviously I cannot block .ZIP globally as it will affect many other users so I'm looking for a way to block it only for their recipient domain.

    This doesn't seem possible using global/user filters in cPanel (unless I'm mistaken) and I don't see an easy way to do it through clam or SA.

    I'd assume that it is definitely possible with a custom exim filter but I'm not exactly sure how to write it to both A) only apply when their recipient domain is involved and b) to block certain attachments based on that.

    Has anyone done this before and have some custom filter code I could use for this?
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    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