Results 1 to 9 of 9
  1. #1

    clean out /var/spool/exim/input

    i have lots of unsend mail in /var/spool/exim/input, some even older then the 7day limit i have set in exim.conf

    can i safely delete all the unsend mail in that directory?

  2. #2
    Join Date
    Jun 2003
    World Wide Web
    I use a script for clearning out frozen messages from the queue.

    search for frozen messages :
    grep -rl frozen[\ ][0-9]* /var/spool/exim/input > /tmp/H

    remove the data part :
    rm -f $(sed -e s/H/D/g /tmp/H)

    remove the header part :
    for i in `cat /tmp/H`; do rm -f $i;done

    It is not well written, but can be used if you want. - the name says it all!
    Managed Cloud Servers
    Server Management and Monitoring
    24x7 outsourced customer support

  3. #3
    he, well that cleaned up a little....thanks

  4. #4
    for i in `cat /tmp/H`; do rm -f $i;done

    stuff in tmp/H still exists

  5. #5
    what i really mean is, just rm all the files in that dir, can i safely do that?

    its all junk inthere

  6. #6
    If you are on a Cpanel box, you can also manage the queue from there.
    Datums Internet Solutions, LLC
    Systems Engineering & Managed Hosting Services
    Complex Hosting Consultants

  7. #7
    nop, i am on DA

  8. #8
    Join Date
    Apr 2003
    Melbourne, AU
    i don't know whether it's ok to just delete the files, but you can use this command to safely remove the mails from the queue:

    ls /var/spool/exim/input | cut -c1-16 | xargs exim -Mrm

  9. #9
    what does this command do exactly?
    can you describe?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts