Creating Email by command line on DirectAdmin is very simple with 3 steps..

Implementation Guide

Step 1: SSH into your DirectAdmin system

To create Email using the command line on DirectAdmin, first we need SSH or visit VPS or your server with permissions root prior to. If you don’t know how SSH into the VPS or Server you can refer to the following tutorial article:

After having SSH Successfully we continue with step 2 to create Email by command line on DirectAdmin.

Step 2: Create Email with command line

DirectAdmin provides its own command so that users can quickly create Email accounts for a specific domain, without having to create it through the DirectAdmin interface. This saves you a lot of time when you need to create Emails in large numbers.

  • Command structure for creating Email

First, run the command below to see the structure of the command to create an Email account.

/usr/local/directadmin/scripts/add_email.sh
    

After running the above command will display the content below:

Create Email by command line on DirectAdmin
/usr/local/directadmin/scripts/add_email.sh <user> <domain> '<cryptedpass>' <plaintext> <quota>

You guys notice my line boldthis is the structure of the command to create Email, including values ​​​​in turn <user> <domain> ‘<cryptedpass>’ <plaintext> <quota>

Now I will create an actual Email with the information that the Email I will create is:

And here is the actual create command:

/usr/local/directadmin/scripts/add_email.sh admin thegioibecon.com matkhau123 1 $((500*1024*1024))
    
Create Email by command line on DirectAdmin

Step 3: Check Email

After you have created the Email using the command line, now log in to DirectAdmin to check.

And as shown below, in the E-mail Accounts Already have Email [email protected].

Create Email by command line on DirectAdmin

Now, you use that information to log in webmail Try it and see if it works. And as shown below, I have also successfully logged into webmail.

Create Email by command line on DirectAdmin

Hope the above article will help you in creating Email quickly. If you find the article useful, don’t forget to share and recommend to your friends.

Hope this short article will help you to enable cURL on DirectAdmin successfully. From there, the Websites/Services on your server can operate/communicate with each other more effectively.

See more useful articles about DirectAdmin at the following path:

If you need assistance, you can contact support in the ways below:


 


Similar Posts