[SOLVED] Whitelist messages pulled from a specific fetchmail mailbox

keeka

Active Member
Dec 8, 2019
157
18
38
What is the best way to whitelist all mail that arrives via one specific fetchmail account?

Many thanks.
 
Hm - without explicitly testing it - try creating a rule with high priority (higher than rules that block/quarantine mail):
* To object - that fetchmail account's address
* Action - accept

I hope this helps!
 
  • Like
Reactions: keeka
Thanks. I will try that.
The email in question comes from a low traffic gmail mailbox, so no blatant spam as such. One recent & quite important mail got scored high though. Incidentally it was an insurance renewal reminder and the email was full of marketing crap and other spammers tricks like hidden text. Very unprofessional format for such an email IMO.
 
Last edited:
I can confirm the suggested solution works for me.
I thought of defining the To: header match object as a wildcard <.*@gmail.com>. But then it occurred to me, would that make my PMG installation an open relay for gmail destination addresses?!
 
Apart from fetchmail PMG's access control works roughly as follows:
* for the external port mails _to_ your configured relay domains are accepted
* for the internal port mails coming _from_ any trusted IP in your configured trusted networks

But as always - I would suggest to simply try it - keep an eye on the logs.
 
  • Like
Reactions: keeka
Thanks. So the postfix relay restrictions trump any whitelisting defined in mail filtering? That makes sense.
 

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!