M mboka New Member May 2, 2019 4 0 1 48 Sep 26, 2019 #1 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
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
Stoiko Ivanov Proxmox Staff Member Staff member May 2, 2018 9,220 1,653 248 Sep 26, 2019 #2 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!
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!
M mboka New Member May 2, 2019 4 0 1 48 Sep 26, 2019 #3 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.
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.
Stoiko Ivanov Proxmox Staff Member Staff member May 2, 2018 9,220 1,653 248 Sep 26, 2019 #4 mboka said: And sorry, I did not find the other threads although I searched the forum in advance of my posting. Click to expand... No stress - I found it because I remembered reading/writing it Good luck!
mboka said: And sorry, I did not find the other threads although I searched the forum in advance of my posting. Click to expand... No stress - I found it because I remembered reading/writing it Good luck!