Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2005
    Posts
    533

    Delete Mails in Exim

    Hello,

    I read this post:
    http://www.webhostingtalk.com/showthread.php?t=464451

    I should delete older than 5 days emails, how can I do it? (on cpanel and exim)

  2. #2
    Join Date
    Oct 2002
    Location
    State of Disbelief
    Posts
    22,956
    Here's one way:
    Code:
    exiqgrep -r [email protected] -o 432000 -i | xargs exim -Mrm
    (432000 is the number of seconds in 5 days)

    You can leave off the email address if you just want to kill all messages that old:
    Code:
    exiqgrep -o 432000 -i | xargs exim -Mrm
    Having problems, or maybe questions about WHT? Head over to the help desk!

  3. #3
    Join Date
    Mar 2005
    Posts
    533
    Thanks for your help,

    I check the exim config file, in this file the value of ignore_bounce_errors_after and timeout_frozen_after are 5d but when I going to Exim Mail Queue we have some mails for 8day later!

    what should I do ?

  4. #4
    use "ConfigServer Mail Queues" its free service and it will work with cpanel and its easy to use

  5. #5
    Join Date
    Mar 2005
    Posts
    533
    "exiqgrep -o 432000 -i | xargs exim -Mrm " does not work for me ! when I run this command on background after some minute show the [104] Exit

  6. #6
    What is the output of only exiqgrep -o 432000 ?

Posting Permissions

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