Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Feb 2007
    Posts
    12

    Default EXIM, How to prevent cpanel from keeping emails older than X days in the mail queue

    .
    I know you can edit exim.conf and specify not to keep emails older than x days in the mail queue, but is there a way of setting this in cpanel? as i dont want to manually set it, only for cpanel to wipe the settings.


    I've searched the forums with no success.

    Thanks in advance.

  2. #2
    Member
    Join Date
    Feb 2007
    Posts
    12

    Default Re:

    as above...
    Last edited by fulleffect; 11-19-2007 at 02:03 PM.

  3. #3
    Member
    Join Date
    Aug 2001
    Location
    Wisconsin
    Posts
    121

    Default

    Just use the Exim Configuration Editor in WHM to make the changes. Then cPanel won't wipe them out when Exim is upgraded.

    Bailey
    toast and jam.

  4. #4
    Registered User
    Join Date
    Oct 2004
    Posts
    93

    Default

    We use config mail queues to manage emails in our servers and works perfect.

  5. #5
    Member
    Join Date
    Feb 2007
    Posts
    12

    Default

    When i go into Exim Configuration Editor, and then Advanced Editor,

    I can see the bit i want to edit, (at the very top) but its not inside a text box

    where as if you scroll down most of it is inside editable text boxes.



    Any idea how to edit this bit....


    # primary_hostname =
    deliver_queue_load_max = 3
    auto_thaw = 6d
    ignore_bounce_errors_after = 7d
    timeout_frozen_after = 8d

    I dont get it? why is some parts of exim.conf editable and others arent in WHM?

    Im using.........

    WHM 11.11.0 cPanel 11.15.0-R18033
    CENTOS Enterprise 4.5 i686 on standard - WHM X v3.1.0

  6. #6
    Member
    Join Date
    Feb 2007
    Posts
    12

    Default

    Any ideas please?

  7. #7
    Member
    Join Date
    Jan 2007
    Posts
    17

    Default

    Hi,

    As i know whm is using another file for edit, but don't worry you can edit that section in exim.conf directly.

    1. login to shell as root
    2. open /etc/exim.conf in your favorite editor to edit it.
    3. save the file and restart exim.

    You can also setup cron on server to remove emails older than 5 days as follows.
    #Remove all messages older than five days (86400 * 5 = 432000 seconds)

    1. crontab -e
    2. add folloiwng cron
    * 0 * * * exiqgrep -o 432000 -i | xargs exim -Mrm &> /dev/null
    3. save and restart crond

    Hope it will helps you


    Anand

Similar Threads & Tags
Similar threads

  1. Exim mail queue... deleting single emails (your opinion)
    By lamp in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-20-2006, 09:55 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. 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
  4. How to stop mail queue holding emails that are 50 days old?
    By bjdea1 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-25-2004, 10:03 PM
  5. Delete messages in queue older than xx days ?
    By pguy in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 02-02-2004, 01:40 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube