Exporting list of CPanel email accounts

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

There are no scripts in the /usr/local/cpanel/scripts directory that will do that, but you could utilize the Email::listpops API2 function. It's documented here:

Email::listpops

Example URL:

Code:
http://hostname.com:2082/cpsess8555828455/json-api/cpanel?cpanel_jsonapi_apiversion=2&cpanel_jsonapi_module=Email&cpanel_jsonapi_func=listpops
Or, you could implement this function with a custom script that you run via the command line.

Thank you.