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.

How to restart frozen mail in bulk

Discussion in 'E-mail Discussions' started by mattft, May 30, 2007.

  1. mattft

    mattft Member

    Joined:
    Oct 14, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    OK, so I'm moving servers and everything is going well. Transfers done and DNS looking good. However, one account's mail screwed up some how, and now I have 2000 messages on the old server in the Exim queue frozen. I've fixed the problems preventing delivery, and if I manually kick off each email, it gets delivered to the new server successfully.

    Here is the problem though. If I try to use the "deliver everything in queue" nothing gets delivered because it's all frozen. I've tried various scripts revolving around

    [codebox]exim -bp[/codebox]

    But nothing gets returned form that query, so I can't get the message IDs to force a retry.

    [codebox]exim -qff[/codebox]

    does seem to have any effect either...

    Any ideas! I really don't want to have to click on each email in WHM to get it delivered!
     
  2. nithintou

    nithintou Member

    Joined:
    Dec 22, 2006
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    # exiqgrep -z -i |xargs exim -M
     
  3. mattft

    mattft Member

    Joined:
    Oct 14, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    exim: no message ids given after -M option

    :(
     
  4. mattft

    mattft Member

    Joined:
    Oct 14, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    strange. I've found all of the mails in /var/spool/exim/input and /var/spool/exim/msglog. So I stick a few of the ID's in to

    # exim -v -M <message ID>

    and I get a reply saying it can't find the spool file...

    <tears hair out>
     
  5. ebizindia

    ebizindia Well-Known Member

    Joined:
    Oct 13, 2005
    Messages:
    72
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Kolkata, India
    cPanel Access Level:
    Root Administrator
    Thaw, then deliver

    exiqgrep -z -i | xargs exim -Mt

    Now run a queue delivery.
     
  6. metsfan

    metsfan Registered

    Joined:
    Nov 11, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    I find the ConfigServer Mail Queues plugin to be very useful. It has an option to retry frozen emails, though I've never used that feature so I can't say if it works or not.

    It's a free plugin: http://www.configserver.com/cp/cmq.html
     
  7. mattft

    mattft Member

    Joined:
    Oct 14, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    exim: no message ids given after -Mt option

    Any other ideas?
     
  8. mattft

    mattft Member

    Joined:
    Oct 14, 2005
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    wow! excellent script. Worked a treat. Thanks.
     
Loading...

Share This Page