save the attached file to the specified path when the conditions are met

chchang

Well-Known Member
Feb 6, 2018
33
4
48
46
I would like to set up the following conditions:

When these conditions are met, I want to perform the following actions:

  • Save the attachment to a specified path on the server (e.g., /tmp, /opt, or wherever).
  • Forward the email to admin@bbb.com.
  • Allow the email to be delivered.
Can PMG fulfill these requirements? If possible, how should I configure it? In the management interface, I only see an option to remove attachments.
 
Most should work:
* one rule with a from and to object with the addressess
* one what object to match the filetype (pdf)
* one action with remove attachment (and put the mail into attachment quarantine)
* one action with bcc to admin@bbb.com
* one action with bcc to the original recipient (you might need to generate a second rule for this so that they get the original mail)
also you cannot chose where the original e-mail will be stored (it will be in PMG's quarantine spooldir)

just try it!
 
  • Like
Reactions: jamesharris502
>>one action with remove attachment (and put the mail into attachment quarantine)

since the gateway remove attachment , where should I find the files? in quarantine? that's not what I want .
I want to assign a path to save the attachment .
 
  • Like
Reactions: jamesharris502
since the gateway remove attachment , where should I find the files? in quarantine? that's not what I want .
I want to assign a path to save the attachment .
This is currently not possible.
 

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!