Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how to remove all email from a user

Discussion in 'E-mail Discussions' started by morteza3245, Nov 3, 2016.

Tags:
  1. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    128
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Hello
    one of my user sent 40K email, and all them in queu

    i have two question:

    1- how i can check/find which user send this emails?

    2- how i can delete all emails in queue just for one user

    Thanks.
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    568
    Likes Received:
    40
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    1- how i can check/find which user send this emails?
    Above command will show the all queue mails with email ID.


    2- how i can delete all emails in queue just for one user

    use below command :

     
    morteza3245 likes this.
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can also browse to "WHM >> Mail Queue Manager" to find one of the offending messages. Once you find one of the messages, review the message header to see if you are able to determine which account the messages were sent from. Regarding the email removal, search the messages in "Mail Queue Manager", click "Run Report", then click on the "Delete Selected" button to delete all emails in the list.

    You may also find the following URL helpful if you prefer to use the command line:

    Exim Cheatsheet

    Thank you.
     
    morteza3245 likes this.
  4. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    128
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    thanks
    how i can see list of this commands?
    means how learn this commands like yourself?

    thanks.
     
  5. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    128
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    its a way, but this is not fine when we have 900K email in queue, server will hang :p
     
  6. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    568
    Likes Received:
    40
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Here are the all exiqgrep command options, You can use any of this options with your command

    Code:
    [root@server ~]# exiqgrep -h
    Exim message queue display utility.
    
            -h              This help message.
            -C              Specify which exim.conf to use.
    
    Selection criteria:
            -f <regexp>     Match sender address sender (field is "< >" wrapped)
            -r <regexp>     Match recipient address
            -s <regexp>     Match against the size field from long output
            -y <seconds>    Message younger than
            -o <seconds>    Message older than
            -z              Frozen messages only (exclude non-frozen)
            -x              Non-frozen messages only (exclude frozen)
    
    [ NB: for regexps, provided string sits in /<string>/ ]
    
    Display options:
            -c              Display match count
            -l              Long Format [Default]
            -i              Message IDs only
            -b              Brief Format
            -R              Reverse order
            -a              All recipients (including delivered)
     
Loading...

Share This Page