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.

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

Discussion in 'E-mail Discussions' started by fulleffect, Nov 19, 2007.

  1. fulleffect

    fulleffect Member

    Joined:
    Feb 26, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    .
    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. fulleffect

    fulleffect Member

    Joined:
    Feb 26, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Re:

    as above...
     
    #2 fulleffect, Nov 19, 2007
    Last edited: Nov 19, 2007
  3. Bailey

    Bailey Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    120
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Wisconsin
    Just use the Exim Configuration Editor in WHM to make the changes. Then cPanel won't wipe them out when Exim is upgraded.

    :D Bailey
     
  4. tangowebs

    tangowebs Well-Known Member

    Joined:
    Oct 12, 2004
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    0
    We use config mail queues to manage emails in our servers and works perfect.
     
  5. fulleffect

    fulleffect Member

    Joined:
    Feb 26, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    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....



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

    Im using.........

     
  6. fulleffect

    fulleffect Member

    Joined:
    Feb 26, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    Any ideas please?
     
  7. andyaav

    andyaav Member

    Joined:
    Jan 1, 2007
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    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
     
Loading...

Share This Page