Hi,
I was wondering if it was possible to get a listing of email accounts per cPanel account in an easy way? I think you could maybe list them under /home/mail maybe, but was wondering if there was a command line script or something that listed all email accounts on the system. The below link shows /scripts/addpop to add an email via cli. I was wondering about something like 'getpop'.
forums.cpanel.net
Thanks
UPDATE:
I found this in the api, this can be scripted to cycle through the accounts.
was hoping for a flat file like /etc/localdomains or /etc/userdomains (or something like that, or a pre-existing script/command that would run on the whole system without scripting)
I was wondering if it was possible to get a listing of email accounts per cPanel account in an easy way? I think you could maybe list them under /home/mail maybe, but was wondering if there was a command line script or something that listed all email accounts on the system. The below link shows /scripts/addpop to add an email via cli. I was wondering about something like 'getpop'.
Creating e-mail accounts through command line
How can I create e-mails accounts through the command line, without using the cPanel? Are there any script which I could use? -Thanks Romero Júnior
Thanks
UPDATE:
I found this in the api, this can be scripted to cycle through the accounts.
Code:
uapi --user=account Email list_pops
was hoping for a flat file like /etc/localdomains or /etc/userdomains (or something like that, or a pre-existing script/command that would run on the whole system without scripting)
Last edited: