Force sendmail to deliver a message in sendmail's mail queue

Posted on in Categories Linux, Postfix, UNIX last updated April 3, 2006

Sendmail is age-old mail transfer agent (MTA). We still use sendmail on Solaris boxes and all other web hosting (www) server to route mails via our master MTA.

Task: Linux/UNIX deliver old email

The command sendmail -q forces the mail queue to be sent. Use the command mailq to find out what’s in the queue:
# sendmail -q
# mailq
Following command will force sendmail to become verbose so that debugging turns into an easy job:

# sendmail -v -q

However, there is a catch. Sendmail would not process your queue if the system load were too high. You can configure these options in sendmail configuration file and configure QueueLA option. Using this option you can configure load average at which Sendmail simply queues up new messages, this is a good tweaking and troubleshooting parameter.

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

6 comment

  1. Pls guide , suggest your expert advise
    We are using Fedora mail server but all te messages in the queue are stuck , goes very very slow, we need to flush the queue every time and then it sends messages.

    We do this after ervy one hour, which is really trouble some

    please advise any solution

    Thanks a lot for your help

Leave a Comment