Rename attachment


Active Member
Aug 24, 2017

I would like to implement a rule, where i rename attachment extensions, if it exe, bat or similar. Like what renattach do.
What is the best was to approach this?

Add custom transport into postfix conf, and using renattach, or something else?


Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
renaming of attachments is not implemented in the Rule System - so yes - if you want you can integrate it into the postfix config[0].

However - why not putting the attachments into the attachment quarantine - the user directly gets the mail - and for the (unlikely) case they really
wanted to get a .exe file sent to them via e-mail they can ask the Admin to send the original mail.

[0] to modify the postfix config in PMG you need to use the templating system:


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 your own in 60 seconds.

Buy now!