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!

Mails delete

Discussion in 'E-mail Discussion' started by SACHIN, Dec 13, 2004.

  1. SACHIN

    SACHIN Guest

    Hello all...

    HOw can i delete mail from mail with certain parameter..

    we are receiving some spam mail with same domain name but differnt user name
    for example

    test@domain.com
    test2@domain.com

    question is that
    how i can find and delete mails at one time for one perticuler domain name?

    waiting for reply...

    :confused:
     
  2. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    318
    As taken from the exim docs:
    exim -Mrm <message id> <message id>

    Of course this is probably a little much.. if you've got a whole slew of messages to get rid of.

    Might just be best to first set up a filter to deny / reject messages from that domain, then clear the mail queue if possible.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. SACHIN

    SACHIN Guest

    not solved

    hello

    grep -lr domainname.com /var/spool/exim/input/* |xargs rm -rf

    i got it
    thank you.
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice