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.

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

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

Tags:
  1. jfall123

    jfall123 Well-Known Member

    Joined:
    Oct 31, 2005
    Messages:
    52
    Likes Received:
    1
    Trophy Points:
    158
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page