Accepting Only Allowed Attachments

ibrahimayhan

Member
Jul 21, 2020
30
0
6
33
Hi Proxmox Team,
I'm Adapting on our Proxmox MG Structure,
Instead of Blocking Individual Mail Attachments,
Accept Only Specific Mail Attachments
How Can I Write the Rule?
 
Hi,

you could do this by using two rules.
1. A higher priority "accept mails with good attachment"
2. A lower priority than the other rule with "block ALL attachments"

As the "accept good" one has higher priority only the bad ones will come to the "block every mail with any attachment" rule.
 
Hi,

you could do this by using two rules.
1. A higher priority "accept mails with good attachment"
2. A lower priority than the other rule with "block ALL attachments"

As the "accept good" one has higher priority only the bad ones will come to the "block every mail with any attachment" rule.

Hi @t.lamprecht
I Didn't Understand What To Do Because I Used Proxmox MG For The First Time,
Can You Tell With A Screen Shot Or A Small Video?
 
There's a "Installation and Configuration of Proxmox Mail Gateway" video here which touches the mail filter rules a bit:
https://youtu.be/Dr3-BeY0V1k?t=410

Also there's the documentation available:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#chapter_mailfilter

You would need to add a "what object" for the good attachments:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmg_mailfilter_what

Sorry, I'm on the go, so cannot provide more in depth help, try to search the forum and docs, youtube has also some videos.
Maybe some other forum member can help a bit :)
 
Hello
Hi,

you could do this by using two rules.
1. A higher priority "accept mails with good attachment"
2. A lower priority than the other rule with "block ALL attachments"

As the "accept good" one has higher priority only the bad ones will come to the "block every mail with any attachment" rule.
I have almost the same problem , I have tried your option without luck so far , what I did is this :
Rule 90 : allowed pdf + tiff + txt
Rule 80 : block all
If i send mail with ALL the attachment meaning pdf + tiff + txt it is pass
BUT : sending only pdf it is blocked

I am using ver 8.2.0
Thank you for any help
Koby Peleg Hen
 
Rule 90 : allowed pdf + tiff + txt
How does your rule, and what object match looks like? It might be, that you need to change to the "any match" policy for the allow-pdf+tiff+txt what object (or rule).