Rename attachment

janos

Active Member
Aug 24, 2017
173
15
38
Hungary
Hello,

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?

Thanks!
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
6,862
1,039
164
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:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine
 

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

Buy now!