[[cli_pmgconfig]]
*pmgconfig* `<COMMAND> [ARGS] [OPTIONS]`

[[cli_pmgconfig_acme_account_deactivate]]
*pmgconfig acme account deactivate* `[<name>]` `[OPTIONS]`

Deactivate existing ACME account at CA.

`<name>`: `<name>` ('default =' `default`)::

ACME account config file name.

`--force` `<boolean>` ('default =' `0`)::

Delete account data even if the server refuses to deactivate the account.

[[cli_pmgconfig_acme_account_info]]
*pmgconfig acme account info* `[<name>]` `[FORMAT_OPTIONS]`

Return existing ACME account information.

`<name>`: `<name>` ('default =' `default`)::

ACME account config file name.

[[cli_pmgconfig_acme_account_list]]
*pmgconfig acme account list*

ACME account index.

[[cli_pmgconfig_acme_account_register]]
*pmgconfig acme account register* `[<name>] {<contact>}` `[OPTIONS]`

Register a new ACME account with a compatible CA.

`<name>`: `<name>` ('default =' `default`)::

ACME account config file name.

`<contact>`: `<string>` ::

Contact email addresses.

`--directory` `^https?://.*` ::

URL of ACME CA directory endpoint.

[[cli_pmgconfig_acme_account_update]]
*pmgconfig acme account update* `[<name>]` `[OPTIONS]`

Update existing ACME account information with CA. Note: not specifying any
new account information triggers a refresh.

`<name>`: `<name>` ('default =' `default`)::

ACME account config file name.

`--contact` `<string>` ::

Contact email addresses.

[[cli_pmgconfig_acme_cert_order]]
*pmgconfig acme cert order* `<type>` `[OPTIONS]`

Order a new certificate from ACME-compatible CA.

`<type>`: `<api | smtp>` ::

The TLS certificate type (API or SMTP certificate).

`--force` `<boolean>` ('default =' `0`)::

Overwrite existing custom certificate.

[[cli_pmgconfig_acme_cert_renew]]
*pmgconfig acme cert renew* `<type>` `[OPTIONS]`

Renew existing certificate from CA.

`<type>`: `<api | smtp>` ::

The TLS certificate type (API or SMTP certificate).

`--force` `<boolean>` ('default =' `0`)::

Force renewal even if expiry is more than 30 days away.

[[cli_pmgconfig_acme_cert_revoke]]
*pmgconfig acme cert revoke* `<type>`

Revoke existing certificate from CA.

`<type>`: `<api | smtp>` ::

The TLS certificate type (API or SMTP certificate).

[[cli_pmgconfig_acme_plugin_add]]
*pmgconfig acme plugin add* `<type> <id>` `[OPTIONS]`

Add ACME plugin configuration.

`<type>`: `<dns | standalone>` ::

ACME challenge type.

`<id>`: `<string>` ::

ACME Plugin ID name

`--api` `<1984hosting | acmedns | acmeproxy | active24 | ad | ali | alviy | anx | artfiles | arvan | aurora | autodns | aws | azion | azure | beget | bookmyname | bunny | cf | clouddns | cloudns | cn | conoha | constellix | cpanel | curanet | cyon | da | ddnss | desec | df | dgon | dnsexit | dnshome | dnsimple | dnsservices | doapi | domeneshop | dp | dpi | dreamhost | duckdns | durabledns | dyn | dynu | dynv6 | easydns | edgecenter | edgedns | euserv | exoscale | fornex | freedns | freemyip | gandi_livedns | gcloud | gcore | gd | geoscaling | googledomains | he | he_ddns | hetzner | hetznercloud | hexonet | hostingde | huaweicloud | infoblox | infomaniak | internetbs | inwx | ionos | ionos_cloud | ipv64 | ispconfig | jd | joker | kappernet | kas | kinghost | knot | la | leaseweb | lexicon | limacity | linode | linode_v4 | loopia | lua | maradns | me | miab | mijnhost | misaka | myapi | mydevil | mydnsjp | mythic_beasts | namecheap | namecom | namesilo | nanelo | nederhost | neodigit | netcup | netlify | nic | njalla | nm | nsd | nsone | nsupdate | nw | oci | omglol | one | online | openprovider | openprovider_rest | openstack | opnsense | ovh | pdns | pleskxml | pointhq | porkbun | rackcorp | rackspace | rage4 | rcode0 | regru | scaleway | schlundtech | selectel | selfhost | servercow | simply | spaceship | technitium | tele3 | tencent | timeweb | transip | udr | ultra | unoeuro | variomedia | veesp | vercel | vscale | vultr | websupport | west_cn | world4you | yandex360 | yc | zilore | zone | zoneedit | zonomi>` ::

API plugin name

`--data` `File with one key-value pair per line, will be base64url encode for storage in plugin config.` ::

DNS plugin data. (base64 encoded)

`--disable` `<boolean>` ::

Flag to disable the config.

`--nodes` `<string>` ::

List of cluster node names.

`--validation-delay` `<integer> (0 - 172800)` ('default =' `30`)::

Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.

[[cli_pmgconfig_acme_plugin_config]]
*pmgconfig acme plugin config* `<id>` `[FORMAT_OPTIONS]`

Get ACME plugin configuration.

`<id>`: `<string>` ::

Unique identifier for ACME plugin instance.

[[cli_pmgconfig_acme_plugin_list]]
*pmgconfig acme plugin list* `[OPTIONS]` `[FORMAT_OPTIONS]`

ACME plugin index.

`--type` `<dns | standalone>` ::

Only list ACME plugins of a specific type

[[cli_pmgconfig_acme_plugin_remove]]
*pmgconfig acme plugin remove* `<id>`

Delete ACME plugin configuration.

`<id>`: `<string>` ::

Unique identifier for ACME plugin instance.

[[cli_pmgconfig_acme_plugin_set]]
*pmgconfig acme plugin set* `<id>` `[OPTIONS]`

Update ACME plugin configuration.

`<id>`: `<string>` ::

ACME Plugin ID name

`--api` `<1984hosting | acmedns | acmeproxy | active24 | ad | ali | alviy | anx | artfiles | arvan | aurora | autodns | aws | azion | azure | beget | bookmyname | bunny | cf | clouddns | cloudns | cn | conoha | constellix | cpanel | curanet | cyon | da | ddnss | desec | df | dgon | dnsexit | dnshome | dnsimple | dnsservices | doapi | domeneshop | dp | dpi | dreamhost | duckdns | durabledns | dyn | dynu | dynv6 | easydns | edgecenter | edgedns | euserv | exoscale | fornex | freedns | freemyip | gandi_livedns | gcloud | gcore | gd | geoscaling | googledomains | he | he_ddns | hetzner | hetznercloud | hexonet | hostingde | huaweicloud | infoblox | infomaniak | internetbs | inwx | ionos | ionos_cloud | ipv64 | ispconfig | jd | joker | kappernet | kas | kinghost | knot | la | leaseweb | lexicon | limacity | linode | linode_v4 | loopia | lua | maradns | me | miab | mijnhost | misaka | myapi | mydevil | mydnsjp | mythic_beasts | namecheap | namecom | namesilo | nanelo | nederhost | neodigit | netcup | netlify | nic | njalla | nm | nsd | nsone | nsupdate | nw | oci | omglol | one | online | openprovider | openprovider_rest | openstack | opnsense | ovh | pdns | pleskxml | pointhq | porkbun | rackcorp | rackspace | rage4 | rcode0 | regru | scaleway | schlundtech | selectel | selfhost | servercow | simply | spaceship | technitium | tele3 | tencent | timeweb | transip | udr | ultra | unoeuro | variomedia | veesp | vercel | vscale | vultr | websupport | west_cn | world4you | yandex360 | yc | zilore | zone | zoneedit | zonomi>` ::

API plugin name

`--data` `File with one key-value pair per line, will be base64url encode for storage in plugin config.` ::

DNS plugin data. (base64 encoded)

`--delete` `<string>` ::

A list of settings you want to delete.

`--digest` `<string>` ::

Prevent changes if current configuration file has a different digest. This can be used to prevent concurrent modifications.

`--disable` `<boolean>` ::

Flag to disable the config.

`--nodes` `<string>` ::

List of cluster node names.

`--validation-delay` `<integer> (0 - 172800)` ('default =' `30`)::

Extra delay in seconds to wait before requesting validation. Allows to cope with a long TTL of DNS records.

[[cli_pmgconfig_apicert]]
*pmgconfig apicert* `[OPTIONS]`

Generate /etc/pmg/pmg-api.pem (self signed certificate for GUI and REST
API).

`--force` `<boolean>` ('default =' `0`)::

Overwrite existing certificate.

[[cli_pmgconfig_cert_delete]]
*pmgconfig cert delete* `<type> [<restart>]`

DELETE custom certificate chain and key.

`<type>`: `<api | smtp>` ::

The TLS certificate type (API or SMTP certificate).

`<restart>`: `<boolean>` ('default =' `0`)::

Restart pmgproxy.

[[cli_pmgconfig_cert_info]]
*pmgconfig cert info* `[FORMAT_OPTIONS]`

Get information about the node's certificates.

[[cli_pmgconfig_cert_set]]
*pmgconfig cert set* `<type> <certificates> <key>` `[OPTIONS]` `[FORMAT_OPTIONS]`

Upload or update custom certificate chain and key.

`<type>`: `<api | smtp>` ::

The TLS certificate type (API or SMTP certificate).

`<certificates>`: `<string>` ::

PEM encoded certificate (chain).

`<key>`: `<string>` ::

PEM encoded private key.

`--force` `<boolean>` ('default =' `0`)::

Overwrite existing custom or ACME certificate files.

`--restart` `<boolean>` ('default =' `0`)::

Restart services.

[[cli_pmgconfig_dkim_record]]
*pmgconfig dkim_record*

Get the public key for the configured selector, prepared as DKIM TXT record

[[cli_pmgconfig_dkim_set]]
*pmgconfig dkim_set* `--keysize <integer> --selector <string>` `[OPTIONS]`

Generate a new private key for selector. All future mail will be signed
with the new key!

`--force` `<boolean>` ::

Overwrite existing key

`--keysize` `<integer> (1024 - N)` ::

Number of bits for the RSA-Key

`--selector` `<string>` ::

DKIM Selector

[[cli_pmgconfig_dump]]
*pmgconfig dump*

Print configuration setting which can be used in templates.

[[cli_pmgconfig_help]]
*pmgconfig help* `[OPTIONS]`

Get help about specified command.

`--extra-args` `<array>` ::

Shows help for a specific command

`--verbose` `<boolean>` ::

Verbose output format.

[[cli_pmgconfig_init]]
*pmgconfig init*

Generate required files in /etc/pmg/

[[cli_pmgconfig_ldapsync]]
*pmgconfig ldapsync*

Synchronize the LDAP database.

[[cli_pmgconfig_sync]]
*pmgconfig sync* `[OPTIONS]`

Synchronize Proxmox Mail Gateway configurations with system configuration.

`--restart` `<boolean>` ('default =' `0`)::

Restart services if necessary.

[[cli_pmgconfig_tlscert]]
*pmgconfig tlscert* `[OPTIONS]`

Generate /etc/pmg/pmg-tls.pem (self signed certificate for encrypted SMTP
traffic).

`--force` `<boolean>` ('default =' `0`)::

Overwrite existing certificate.


