There was a problem loading the comments.

How to check cPanel SPAMMING email account and clean mail queue

Support Portal  »  Knowledgebase  »  Viewing Article

  Print
  1. Log in to WHM.

    2cdb85fce0540d19d5e6d7f02a9232b447917612daea58d233bb64f1ff4719811d72c80996dd4402?t=3d56342532f0c7b3ff5209b3744653e6

  2. Select “Terminal” from the “Search Tools” section.
    d4cb8dc31c6ba6c0c07765b7b1c3f9ebc0113d045f561e0c5fe8aa31ff12de414c5387587472c8e7?t=b16068aaf9d51c18919cdb1efd32b4e5

  3. In WHM, a terminal window will open, where you may run your commands. 
    head -1 /var/log/exim_mainlog | awk '{print $1}' ; egrep -o 'dovecot_login[^ ]+|dovecot_plain[^ ]+' /var/log/exim_mainlog | cut -f2 -d":" | sort|uniq -c|sort -nk 1 ; tail -1 /var/log/exim_mainlog | awk '{print From $1}'

    8f7d3759ef3f411230ed5936f5c3d80f8ee34844c77849f18a735ccded15ab7cd1728592098c97dd?t=e820d1249c8769eceaa40f3774bd857a

 

4. After type the commands will showing total sending email user account  

 

     54223155803b5a3f54e6d6ac22d35f8805fbd889e92d4a03d0598ef1c385cb583351aff28d27b2df?t=2025b6197a45307e1d8ce0771f4ada31

 

5. 

   a.To display the number of emails in the queue we use the command

      exim -bpc

 

   b. To remove all messages from the queue, we use the below command.

       exim -bp|grep "<"|awk {'print $3'}|xargs exim -Mrm

 

bc8fcdfe2e6366097ab90ef35c87a04d3a1828d1cc530db3cbb5c2e3ede5aa1824c743fb496b4ccd?t=584c0a2255c69c70f844dbe601ff5d4b

 

6. When the command is executed to remove all messages from the queue, it will show you the messages that are being removed now until the process is done

 

9e23c80cf82ec92cd0895539264d9a8ec333891c3a6802424b5530c07ff6b12f3dace36518e8610e?t=f62c2a43cba51995b03d61c60a0c7972

 


Share via

Related Articles

Copyright © 2026 TheGigabit. All right reserved. Reg.No: 200701034297 (792326-P)