Manage Mail Servers
There are three commands to manage Mail Servers.

List existing mail servers

1
cfconfig mailserver list
2
cfconfig mailserver list from=serverName
3
cfconfig mailserver list from==/path/to/server/home
Copied!
To receive the data back as JSON, use the --JSON flag.
1
cfconfig mailserver list --JSON
Copied!

Edit an existing or create a new mail server

Add a new mail server or update an existing mail server. Existing mail servers will be matched based on the host name.
1
cfconfig mailserver save smtp.server.com
2
cfconfig mailserver save smtp=smtp.server.com to=serverName
3
cfconfig mailserver save smtp=smtp.server.com to=/path/to/server/home
Copied!

Delete an existing mail server

Identify the mail server uniquely by the host name.
1
cfconfig mailserver delete /foo
2
cfconfig mailserver delete /foo serverName
3
cfconfig mailserver delete /foo /path/to/server/home
Copied!
Last modified 4mo ago