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.

Delete messages in queue older than xx days ?

Discussion in 'General Discussion' started by pguy, Jan 19, 2004.

  1. pguy

    pguy Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    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. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    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.
     
  3. pguy

    pguy Well-Known Member

    Joined:
    Feb 21, 2003
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    6
    Perfect. The secure FTP idea works like a gem :)

    Thanks for the idea
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    No problem. That's how I clean up a lot of areas of my server now and then.
     
  5. parawing742

    parawing742 Member

    Joined:
    Dec 31, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York
    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?
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    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.
     
  7. parawing742

    parawing742 Member

    Joined:
    Dec 31, 2003
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    New York
    I've already done that, but like the person who started this thread, I've found that it doesn't work.
     
  8. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
Loading...

Share This Page