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 db corrupt with a few entries?

Discussion in 'E-mail Discussions' started by sahostking, Jun 12, 2013.

  1. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Hi guys,

    Today we had a client that receiving the following error when sending to a particular email address:

    Bounced Message "retry time not reached for any host after a long failure period"

    I would've thought it may be ISP being sent to was the issue. However dug a bit deeper before responding to client and found that doing this fixed the issue:

    cd /var/spool/exim/db
    rm -f retry retry.lockfile
    rm -f wait-remote_smtp wait-remote_smtp.lockfile
    service exim restart

    Any ideas if I should automate this as a cronjob and if it's a good idea or not?
     
  2. ThinIce

    ThinIce Well-Known Member

    Joined:
    Apr 27, 2006
    Messages:
    346
    Likes Received:
    7
    Trophy Points:
    18
    Location:
    Disillusioned in England
    cPanel Access Level:
    Root Administrator
    The root cause of an entry appearing to get 'stuck' in the exim database like this is generally a failed dns lookup. As such you might like to check your resolvers - generally manually clearing the lock files / exim db in this manner should rarely be necessary
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It's not a good idea to implement a cron job with those commands. It's possible the message failed due to a network issue, but it should be investigated more if you notice this start to happen regularly.

    Thank you.
     
  4. sahostking

    sahostking Well-Known Member

    Joined:
    May 15, 2012
    Messages:
    300
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Cape Town, South Africa
    cPanel Access Level:
    Root Administrator
    Thanks guys.

    Only happened once in 3 years of this server being live. So probably not an issue. Thanks for the help
     
Loading...

Share This Page