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.

Mails delete

Discussion in 'E-mail Discussions' 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:
    38
    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.
     
  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