*pmgconfig* ` [ARGS] [OPTIONS]` *pmgconfig apicert* `[OPTIONS]` Generate /etc/pmg/pmg-api.pem (self signed certificate for GUI and REST API). `--force` `` ('default =' `0`):: Overwrite existing certificate. *pmgconfig dkim_record* Get the public key for the configured selector, prepared as DKIM TXT record *pmgconfig dkim_set* `--keysize --selector ` `[OPTIONS]` Generate a new private key for selector. All future mail will be signed with the new key! `--force` `` :: Overwrite existing key `--keysize` ` (1024 - N)` :: Number of bits for the RSA-Key `--selector` `` :: DKIM Selector *pmgconfig dump* Print configuration setting which can be used in templates. *pmgconfig help* `[OPTIONS]` Get help about specified command. `--extra-args` `` :: Shows help for a specific command `--verbose` `` :: Verbose output format. *pmgconfig init* Generate required files in /etc/pmg/ *pmgconfig ldapsync* Syncronize the LDAP database. *pmgconfig sync* `[OPTIONS]` Syncronize Proxmox Mail Gateway configurations with system configuration. `--restart` `` ('default =' `0`):: Restart services if necessary. *pmgconfig tlscert* `[OPTIONS]` Generate /etc/pmg/pmg-tls.pem (self signed certificate for encrypted SMTP traffic). `--force` `` ('default =' `0`):: Overwrite existing certificate.