[SOLVED] PMG whitelist location

guestfish

Member
Feb 6, 2021
27
4
8
Hi,

Am whitelisted some domains and emails, now i want to manually update or edit those list. On pmg GUI cant find this setting, is there location via CLI?
 
which of the 3 whitelists are you refering to:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_whitelist_overview

all of them should be updated via API or `pmgsh` (they are stored in the db, but parts of it (e.g. mail-proxy whitelist is synced to a postfix config file)

check the api-viewer:
https://pmg.proxmox.com/pmg-docs/api-viewer/index.html

I hope this helps!
wasnt able to get list none via web and cli:

pmgsh get /quarantine/whitelist
400 Parameter verification failed.
pmail: parameter required with role 'root'
get quarantine/whitelist [OPTIONS]

am running this command as root
 
pmail: parameter required with role 'root'
as the message says - when you run the command as 'root' (all invocations on the command line are as root) you need to provide pmail (primary mail - the email for which you want to get the whitelist)
https://pmg.proxmox.com/pmg-docs/api-viewer/index.html#/quarantine/whitelist says:
List entries for the user with this primary email address. Quarantine users cannot speficy this parameter, but it is required for all other roles.

e.g. :
Code:
 pmgsh get /quarantine/whitelist -pmail 'some@email.address'
 
  • Like
Reactions: guestfish
Hello everybody
Please could someone tell me how can export my global white list and blacklist -domain and email list outside of the PMG in .txt format
 

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!