Results 1 to 2 of 2
  1. #1

    Question Delete Old Messages From Exim Mail Queue

    Hi all,

    Is it possible to create a cronjob to delete emails from the Exim Mail Queue, which have been delayed over two days?

    Thanks Stuart

  2. #2
    Join Date
    Jul 2008
    Posts
    176

    Default

    Quote Originally Posted by stukelly View Post
    Hi all,

    Is it possible to create a cronjob to delete emails from the Exim Mail Queue, which have been delayed over two days?

    Thanks Stuart

    Yes it is possible to set cronjob which can remove older emails than 2 days from mailqueue
    For example if you wish to run cronjob every day at 3 AM then correct cronjob would be

    * 3 * * * for i in `exiqgrep -i -o 172800`; do exim -Mrm $i; done >/dev/null 2>&1
    Alan V
    VPS Support Team
    http://www.eukhost.com

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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