Search Our Database

Resetting the email sent limit for a domain and email account in DirectAdmin via CLI

Last updated on |

Introduction

Managing the email sent limit is crucial for maintaining the integrity of your mailing system and preventing abuse. In DirectAdmin, administrators can reset the email sent limits for both domains and individual email accounts directly through the command line interface (CLI). This process is essential for ensuring that legitimate email senders are not unfairly restricted while also safeguarding against potential spamming activities. Regularly monitoring and resetting these limits can help keep your email services running smoothly and prevent your server from being blacklisted.

 

Prerequisites

  1. SSH Access: You must have SSH access to your server where DirectAdmin is installed.
  2. Root or Administrative Privileges: Resetting email sent limits requires root or administrative access to the server.
  3. DirectAdmin Access: Ensure that DirectAdmin is installed and running on your server.
  4. Familiarity with CLI: Basic knowledge of using the command line interface is recommended.

 

Step-by-step Guide

Reset Sent Limit for a Domain

Reset Sent Limit for a Domain

 

Step 1: SSH into Your Server

Open your terminal and connect to your server via SSH using the following command.

ssh root@your_server_ip

Replace your_server_ip with your server’s IP address.

 

Step 2: Switch to Root Privilege

To execute administrative commands, switch to root privileges by running:

sudo su -

 

Step 3: Edit the Domain Usage File

Navigate to the usage file of the specific domain you want to reset by using the command below. Replace <domain_name> with the actual domain name:

vi /etc/virtual/usage/<domain_name>

 

Step 4: Remove All Content in the File

To clear the content of the file, press dd in the vi editor. This command will delete all lines in the file.

You will see the output as below:

 

Step 5: Save and Exit the File

Save your changes and exit the file by pressing Esc, typing :wq, and pressing Enter.

 

Reset Sent Limit for an Individual Email Account

Reset Sent Limit for an Individual Email Account

Step 1: SSH into Your Server

Open your terminal and connect to your server via SSH using the following command.

ssh root@your_server_ip

Replace your_server_ip with your server’s IP address.

 

Step 2: Switch to Root Privilege

To execute administrative commands, switch to root privileges by running:

sudo su -

 

Step 3: Edit the User Usage File

Navigate to the usage file of the specific email account you want to reset by using the command below. Replace <domain_name> with the actual domain name and <user> with the email account’s username:

vi /etc/virtual/<domain_name>/usage/<user>

 

Step 4: Remove All Content in the File

You will see a lines of 1111 as below.

To clear the content of the file, press dd in the vi editor. This command will delete all lines in the file. The output as below.:

 

Step 5: Save and Exit the File

Save your changes and exit the file by pressing Esc, typing :wq, and pressing Enter.

 

Conclusion

Resetting the email sent limit for a domain and email account in DirectAdmin through the CLI is a straightforward process that helps maintain the integrity of your email system. By following the steps outlined above, administrators can effectively manage email limits and ensure that their email services run smoothly.

For additional assistance or if you encounter any issues, please contact our support team at support@ipserverone.com.