[SOLVED] Bulk add Mails to whitelist

mboka

New Member
May 2, 2019
4
0
1
48
Hi!

we have a customer who wants to add 400+ Mailadresses to the whitelist. As it is not practical to add them manually, is there a way to bulk add them?

Thanks in advance!

Markus
 
a) please consider the implications of adding too many objects to the white/blacklists (400 is not too many) - the bigger those lists are the slower processing for all mails will be.
b) you can add them by using the rest-API:
* the basics can be taken from the corresponding article for PVE - https://pve.proxmox.com/wiki/Proxmox_VE_API
* the API documentation can be accessed from your installation - https://ip-of-your-pmg:8006/pmg-docs/api-viewer/index.html
* the following threads also deal with similar questions:
** https://forum.proxmox.com/threads/using-pmgsh-to-query-the-quarantine-or-anything.47197/
** https://forum.proxmox.com/threads/solved-configuration.51701/
** https://forum.proxmox.com/threads/how-to-add-relay-domains-programmatically.44435/

I hope this helps!
 
Thanks for the help, I'll try that.

And sorry, I did not find the other threads although I searched the forum in advance of my posting.
 
And sorry, I did not find the other threads although I searched the forum in advance of my posting.
No stress - I found it because I remembered reading/writing it :)

Good luck!
 

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!