Search Our Database

Why Suspended Emails Are Still Sending and How to Prevent It

Last updated on |
by

Introduction

When an email account is suspended, it should not have the ability to send emails. However, in some cases, suspended accounts may still send emails due to pending messages in the mail queue. This guide provides a step-by-step approach to identifying and resolving this issue, ensuring no further unauthorized emails are sent.

 


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.

 

SSH to Server

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 actual IP address.

Step 2: Switch to Root Privileges

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

sudo su -

 


Check and Clear the Exim Mail Queue

Step 1: Check the Exim Mail Queue

To check for pending emails associated with the suspended account, use the following command:

exim -bp | grep <email_domain>

Replace email_domain  with the suspended account’s domain name. If there are pending emails, they will appear as follows:

33h 696 1tjL7c-0001NK-2t <ylcdx@2024wch10.com>
18h 877 1tjYwy-00013D-2s <example@domain.com> *** frozen ***
14h 2.1K 1tjcTe-0005qi-2R <example@domain.com>
14h 2.1K 1tjcTe-0005qh-2W <example@domain.com>
14h 2.1K 1tjcU9-0006Da-0q <example@domain.com>
14h 2.1K 1tjcU9-0006E3-2b <example@domain.com>
14h 2.1K 1tjcU9-0006E5-2b <example@domain.com>
14h 2.1K 1tjcU9-0006E2-2h <example@domain.com>
14h 2.1K 1tjcUa-0006YX-1h <example@domain.com>
14h 2.1K 1tjcV9-0006z6-2P <example@domain.com>
14h 2.1K 1tjcV9-00070M-2P <example@domain.com>
14h 2.1K 1tjcV9-0006z7-2P <example@domain.com>
14h 2.1K 1tjcV9-00070L-2o <example@domain.com>
14h 2.1K 1tjcYU-0001ly-2W <example@domain.com>
14h 2.1K 1tjcYa-0001qn-0h <example@domain.com>
14h 2.1K 1tjcYe-0001v5-0v <example@domain.com>
14h 2.1K 1tjcYr-00029F-05 <example@domain.com>
14h 2.1K 1tjcYt-0002Bq-2G <example@domain.com>
14h 2.1K 1tjcYt-0002Bj-2e <example@domain.com>
14h 2.1K 1tjcZ4-0002OO-2j <example@domain.com>
14h 2.1K 1tjcZ4-0002OP-2j <example@domain.com>
14h 2.1K 1tjcZH-0002a6-3D <example@domain.com>
14h 2.1K 1tjcZU-0002qW-0L <example@domain.com>
14h 2.1K 1tjcZU-0002pN-0L <example@domain.com>
14h 2.1K 1tjcZU-0002qV-1B <example@domain.com>
14h 2.1K 1tjcZU-0002q4-1B <example@domain.com>
14h 2.1K 1tjcZa-0002wC-2z <example@domain.com>
14h 2.1K 1tjcZe-0002zl-2B <example@domain.com>
14h 2.1K 1tjcZe-0002zu-2B <example@domain.com>
14h 2.1K 1tjcZe-0002zv-2B <example@domain.com>
14h 2.1K 1tjcZe-0002zF-2Z <example@domain.com>
14h 2.1K 1tjcZt-0003EV-14 <example@domain.com>
14h 2.1K 1tjcda-0006pD-05 <fbi.office@2024wch10.com>

Step 2: Clear the Mail Queue

To remove pending emails from the mail queue, run the following command:

exim -bp | example@domain.com | awk '{print $3}' | xargs exim -Mrm

Replace email_domain  with the actual message ID from the queue list to ensure complete removal.

 

 


Conclusion

If a suspended email account continues sending messages, it is likely due to pending emails in the mail queue. By inspecting and clearing the queue, you can prevent further unauthorized emails. Regular monitoring and proactive maintenance of your mail server are essential for preventing similar issues in the future.

For further assistance, please contact our support team.