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.

Please help - Corrupt exim files?

Discussion in 'E-mail Discussions' started by rlesterphx, Mar 20, 2012.

  1. rlesterphx

    rlesterphx Member

    Joined:
    Jul 22, 2010
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    We had a huge influx of spam that was stuck in the Exim mail queue, so I ran this command replacing 'X' with some of the offending spam addresses and terms to clean the queue while keeping good emails:

    Code:
    grep -lir "X" /var/spool/exim/input/* | xargs rm -fv
    I've used that line before with good results, and it worked fine, though I'm not sure what's going on now as most of the remaining 200 or so good emails left in the queue are now malformed.

    For example (looking in the Mail Queue Manager in WHM), on each line the area is blank where there should be the Message ID linking to the message. The message ID now appears where the file size should be displayed.

    How can I repair these files? I've checked them manually on the server and they appear to be valid, but I'm no Exim expert.
     
  2. rlesterphx

    rlesterphx Member

    Joined:
    Jul 22, 2010
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Anyone? Would be really appreciated.
     
  3. rlesterphx

    rlesterphx Member

    Joined:
    Jul 22, 2010
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    The problem was that that command was deleting data spool files but not their accompanying header files.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Thanks for sharing the information. What command did you use in place of it to clear the emails properly?
     
Loading...

Share This Page