Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Feb 2003
    Posts
    76

    Default Delete messages in queue older than xx days ?

    Hello Folks,

    Noticed that quite a lot of messages in the queue are over 40 days old. Is there a command line way to delete msgs over a certain number of days. I guess exim discards messages older than 7 days, but thats not happening here . Any way to deal with this ?

    Regards,

  2. #2
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    They shouldn't be there that long, but you can delete old ones with the find command. Just do a "man find" for full instructions.

    Another way, that I would do it, is to use a secure ftp program to ftp to the server, change to the directory, list by date, select everything more than 4 days old, and hit delete.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  3. #3
    Member
    Join Date
    Feb 2003
    Posts
    76

    Default

    Perfect. The secure FTP idea works like a gem

    Thanks for the idea

  4. #4
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    No problem. That's how I clean up a lot of areas of my server now and then.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  5. #5
    Member parawing742's Avatar
    Join Date
    Dec 2003
    Location
    New York
    Posts
    5

    Default

    Anyway to have them deleted automatically? I don't like to do maintanance when the software should be capable of doing it itself. My server has had mail in the queue for over 2 months now. It should delete it after several days, right?
    Rudy Green[e]

  6. #6
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Mail should automatically be deleted after a certain number of days. Look at your /etc/exim.conf file for a line like "timeout_frozen_after = 4d". I think the default is 7 but I changed mine to 4.

    If there is no line like that, add one, then I think you have to restart exim for the change to take effect.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  7. #7
    Member parawing742's Avatar
    Join Date
    Dec 2003
    Location
    New York
    Posts
    5

    Default

    I've already done that, but like the person who started this thread, I've found that it doesn't work.
    Rudy Green[e]

  8. #8
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    I found something that may be the answer.

    http://www.exim.org/exim-html-4.30/d..._3.html#TOC136

    Lots of nice reading at:
    http://www.exim.org/exim-html-4.30/doc/html/FAQ.html
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

Similar Threads & Tags
Similar threads

  1. Replies: 6
    Last Post: 11-22-2007, 02:59 PM
  2. Delete mail queue older than 3 days
    By jameshsi in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 10-07-2005, 06:34 AM
  3. Mail queue isn't deleting older messages.
    By gflamerich in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 10-05-2005, 06:37 PM
  4. Delete emails from spam box older than x days
    By Netmaking in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 12-02-2004, 08:05 AM
  5. How to delete email that is older than x amount of days?
    By Roberto in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-09-2004, 05:55 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube