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.

Emails "stuck" in queue

Discussion in 'E-mail Discussions' started by Rui Zamith, Jul 29, 2016.

Tags:
  1. Rui Zamith

    Rui Zamith Registered

    Joined:
    Jul 29, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Porto, Portugal
    cPanel Access Level:
    Website Owner
    I have having a problem that I've never had previously, in many years using cPanel.

    I deploy a newsletter from my website, let's say to 5k users. When I go to the "mail queue manager", these emails are stuck in there, a few of them are sent but the majority just sit there blocking the whole system. No other emails are sent until I do something.

    No problem with transaccional emails. If I don't send newsletters, the few transaccional emails that we have are sent with no issues.

    Would definitely appreciate some help here!

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    What's the specific error message that occurs when attempting to deliver one of the messages in the queue?

    Thank you.
     
  3. 24x7ss

    24x7ss Well-Known Member

    Joined:
    Sep 30, 2014
    Messages:
    271
    Likes Received:
    16
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Check /var/log/exim_mainlog logs you will find the reason why mails stuck in queue.
     
  4. NOC_Serverpoint

    NOC_Serverpoint Active Member

    Joined:
    Jul 3, 2016
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    Hello,

    Mostly the old emails will be frozen emails. You can try the force delivery option via SSH and also even the commands to clear the frozen emails by being as the root user via SSH.

    >>To delete Frozen emails from the email queue:

    # grep -R -l '*** Frozen' /var/spool/exim/msglog/*|cut -b26-|xargs exim -Mrm
    # exim -bp| grep frozen | awk '{print $3}'| xargs exim -Mrm
    # exiqgrep -z -i | xargs exim -Mrm

    >> To delete Spam emails from the email queue:

    # grep -R -l [SPAM] /var/spool/exim/msglog/*|cut -b26-|xargs exim -Mrm

    >> To check the no. of frozen mails:

    # exiqgrep -z -c

    >> To check exim logs:

    # tail -f /var/log/exim_mainlog

    >> Force delivery of one message:

    # exim -M mail_id

    >> Force another queue run:

    # exim -qf

    >> Force another queue run and attempt to flush frozen messages:

    # exim -qff

    >> To check if there are frozen emails:

    # exim -bp |awk '/fr[o]zen/ {print}'
     
Loading...

Share This Page