How to gain insight into attachment types flowing through proxmox and reversing removing attachment logic

poetry

Active Member
May 28, 2020
206
63
33
Hello,

We want to gain insight into what kind of attachment types are currently flowing through proxmox mail filter. Once we get this information we would like to setup our proxmox to remove all attachments except the ones we allow. If we look at how google, yahoo, Microsoft does this they pretty much block almost everything except a few file types. We would use similar logic as set for exchange owa attachment blocking.

If you do Get-OwaMailboxPolicy on exchange you will found out (this is most of the attachments that we would allow)
depending on what we find out on proxmox we would allow probably less then noted below and add some if needed.
WebReadyDocumentViewingSupportedFileTypes :
{.doc, .dot, .rtf, .xls, .ppt, .pps, .pdf, .docx, .xlsx, .pptx}
AllowedFileTypes:
{.rpmsg, .xlsx, .xlsm, .xlsb, .tiff, .pptx, .pptm, .ppsx, .ppsm, .docx, .docm, .zip, .xls, .wmv, .wma, .wav...}
AllowedMimeTypes :
{image/jpeg, image/png, image/gif, image/bmp}


We like that we only remove attachment and message still is accepted as it's easy to troubleshoot when some person is reporting a problem with their attachment. It's clear what was removed and why.

Can you give us some pointers/help how we can do this? Thank you!
 
Last edited:
Check out Mail filter -> What object -> Match filename and Content file filter.
You can quarantine the mail with attachment using the action object.
 
Last edited:
  • Like
Reactions: Stoiko Ivanov

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!