Skip to main content

Emails "stuck" in queue

Comments

3 comments

  • cPanelMichael
    but the majority just sit there blocking the whole system. No other emails are sent until I do something.

    Hello, What's the specific error message that occurs when attempting to deliver one of the messages in the queue? Thank you.
    0
  • 24x7ss
    Check /var/log/exim_mainlog logs you will find the reason why mails stuck in queue.
    0
  • NOC_Serverpoint
    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}'
    0

Please sign in to leave a comment.