Email Accounts and Password Changing

Set Virtual Email Password

Function Used to change an email password without requiring a DirectAdmin account (will not change system email account password)
Command CMD_CHANGE_EMAIL_PASSWORD
Method GET or POST
Success Returns url encoded array if api is passed. Else if redirect is passed, browser will be redirected there. Else a dynamic “success” page is shown.
Failure Returns url encoded array if api is passed. Else a dynamic “error” page is shown.
Form values:

Name ||Value|

email virtual pop account to be changed. This will not change the main system acccount email
oldpassword Previous password used for the email account
password1 New password to be used
password2 Re-type the new password to be used
( redirect ) Optional redirect. Upon successful password change, the user will be forwarded here eg.”/” or “http://redirect.com/site”.

This value has no effect if api is passed ( api ) yes (any value will work, only the inclusion of “api=” is checked) If api, Array returns values:

Name Value
error 0 or 1, To determine if it was successful or not
text some text decribing the result

List Virtual POP Account

Function Used to list all of the pop accounts for a domain
Command CMD_API_POP
Method GET or POST
Success Returns url encoded array in list[]
Failure Returns error=1 and url encoded String
Form values:
Name Value
action list
domain the domain to be shown eg: domain.com

Create a Virtual POP Account

Function Used to create a pop account for a domain
Command CMD_API_POP
Method GET or POST
Success Returns error=0 and url encoded String
Failure Returns error=1 and url encoded String
Form values:
Name Value
action create
domain the domain to be shown eg: domain.com
user email user eg: bob
passwd the password for the account
quota Integer in Megabytes. Zero for unlimited, 1+ for number of Megabytes.

Delete a Virtual POP Account

Function Used to delete a pop account for a domain
Command CMD_API_POP
Method GET or POST
Success Returns error=0 and url encoded String
Failure Returns error=1 and url encoded String
Form values:
Name Value
action delete
domain the domain to be shown eg: domain.com
user email user eg: bob
 
commands/email.txt · Last modified: 2010/03/02 00:08 by muscardin
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Please visit Automatic Backlinks to start earning free backlinks Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki