[SOLVED] Bulk add Mails to whitelist

mboka

New Member
May 2, 2019
4
0
1
49
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!