How to block / quarantine extensions in Proxmox Mail Gateway

How to block / quarantine extensions in Proxmox Mail Gateway

To block incoming emails in Proxmox Mail Gateway that contain attachments with a specific extension, for example, .cab I recommend blocking both the extension (MIME type) and the filename (files that end with .cab).

To do this first log in to Proxmox Mail Gateway and under Mail Filter > What Objects > Dangerous Content add the following:

Content Type Filter: extension name (e.g. .cab)

image 19 - How to block / quarantine extensions in Proxmox Mail Gateway

Match Filename: extension name (e.g. .cab)

image 20 - How to block / quarantine extensions in Proxmox Mail Gateway

So afterwards the Dangerous Content object should look like this:

image 21 - How to block / quarantine extensions in Proxmox Mail Gateway

After setting this extension and file name in the What objects section, the default action is to still deliver the emails but without the blocked attachment:

image 22 1024x217 - How to block / quarantine extensions in Proxmox Mail Gateway

To quarantine or block emails containing these extensions, modify the Mail FIlter > Block Dangerous Files rule and add the Quarantine or Block action depending on the desired action.

image 24 - How to block / quarantine extensions in Proxmox Mail Gateway

After that any emails that contain this extensions will be quarantined:

image 23 1024x142 - How to block / quarantine extensions in Proxmox Mail Gateway
whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.