Delete domains from Relay & Transport command line

Mar 26, 2023
57
8
8
Hi there,

I can add domains to PMG like so:

#Add domains to Transport
pmgsh create /config/transport -domain somedomain.com -host <IP> -port 25 -protocol smtp -use_mx 0 -comment test

#Add domains to Relay
pmgsh create /config/domains --domain somedomain.com -comment test

But how can I delete them?

I am trying to automate things with scripts.

Thanks.
 
i use the following Commands to delete a Domain:

Code:
pmgsh delete /config/domains/<domain.com>
pmgsh delete /config/transport/<domain.com>
 

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!