forward all mail with attachments?

noimad1

Well-Known Member
Mar 27, 2003
626
0
166
Anyone know if there is a way that I could have all e-mail for a domain that has an attachment forward to a separate e-mail account, and not go to the original recipient?

I have a client that doesn't want any of his employees to get e-mail attachments, and wants the managers to manually go through them as they come in....
 

kdean

Well-Known Member
Oct 19, 2012
408
82
78
Orlando, FL
cPanel Access Level
Root Administrator
Maybe use "cPanel -> User Level Filtering" to create filters for each user who shouldn't receive attachments and filter where the body contains:

Content-Disposition: attachment;

then "Redirect to Email" and "Discard Message".

I haven't tested it but it should give you a start of things to try.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello :)

Yes, you can try using the "Account Level Filtering" option in cPanel if this is for all email accounts associated with the user. It's documented here:

Account Level Filtering

A rule for "Body" and "contains" with the name of the file extension (e.g. zip, tar.gz, jpeg) you want to filter would likely work.

Thank you.