The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Exporting list of CPanel email accounts

Discussion in 'E-mail Discussions' started by albatroz, Jun 23, 2014.

  1. albatroz

    albatroz Well-Known Member

    Joined:
    Mar 6, 2003
    Messages:
    258
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Virtual Orbis / Peru
    cPanel Access Level:
    Root Administrator
    Is there a command that could allow me the list of email accounts under a particular domain?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page