Solved

Force Qmail to send Emails in Queue.

Posted on 2009-07-09
9
1,432 Views
Last Modified: 2013-12-02
Hello,

Qmail Queue Problem:

I would like to know how to force deliver the emails in queue. I have tried the solutions listed under the following section.

http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Qmail/Q_24092478.html#a23494093

But still so many mails are remaining in queue. Also let me know if possible to force deliver each email separately using "qmhandle" or using any qmail tools.

Already tried "qmhandle -a".
0
Comment
Question by:LinuxGuru
9 Comments
 
LVL 43

Expert Comment

by:ravenpl
ID: 24816961
Maybe You should take a look at maillog to find out why those deliveries fail.
The mentioned solutions (killall -ALRM qmail-send) instructs qmail to try all messages again, but it's for nothing if deliveries fail.
0
 
LVL 20

Expert Comment

by:Daniel McAllister
ID: 24823974
Do you not have the qmailctl script?

If so, enter "qmailctl doqueue" and you'll restart the entire queue sending...

However, I suspect that ravenpl is correct -- there is a REASON these messages are still in the queue -- they are not deliverable for a reason, and that reason should be gleamable from the log files for qmail-send

Hope this helps!

Dan
IT4SOHO
0
 
LVL 13

Author Comment

by:LinuxGuru
ID: 24829169
Thanks for your suggestions. I will try installing qmailctl script and let you know the results.
0
 
LVL 13

Author Comment

by:LinuxGuru
ID: 24829855
Tried installing qmailctl script and getting the following error while running the script.

/var/qmail/bin/qmailctl doqueue
Flushing timeout table and sending ALRM signal to qmail-send.
/var/qmail/bin/qmailctl: line 50: svc: command not found

Any ideas ?
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 13

Author Comment

by:LinuxGuru
ID: 24829871
I have also checked the log files. I was not able to find any reasons. :(
0
 
LVL 13

Author Comment

by:LinuxGuru
ID: 24829919
Please let me know how to install this svc ...
0
 
LVL 20

Accepted Solution

by:
Daniel McAllister earned 125 total points
ID: 24834741
qmailctl is a script -- and it is usually provided with the "distribution" of qmail that you install... so again, I ask if you know which "install guide" you followed when you installed QMail to start with? If not, I can pepper you with additional questions to try to discover which one it is, or we can re-install QMail with a setup we know.

In the mean time, please post the following bits of information...

 1) Run qmail-qstat (it SHOULD be in /var/qmail/bin) and post the 2-line output here
 2) Run qmail-qread (in same location) and post the first 25 lines of the output (qmail-qread | head -25)

The last part will be kinda tricky...
 a) open (for reading) the log file for qmail-send (on my system, this is located at /var/log/qmail/send, but yours may be different)... Remember, QMail uses tai64 timing, and rolls-over log files when they reach a certain size or age -- so I'm only interested in the current log file. So, in my case, I would run:
     vi -R /var/log/qmail/send/current
 b) look at the FIRST line of output of the qmail-qread file -- it will show a MESSAGE NUMBER... for example:
       12 Jul 2009 07:07:05 GMT  #90096614  2123  
     In the above example, the message number is 90096614
 c) Go to the BOTTOM of the log file (current) and search UPWARD for that message number... in my case, in vi I'd enter
        :$
        ?90096614
     
 d) The line you "land on" should START with the words (after the tai64 time stamp) "starting delivery"... if not, press n to search for the next prior instance
 e) Post the contents of the line you landed on PLUS all of the lines that follow until the next "starting delivery" line

What you've done is:
 1) read the number of items in the queue
 2) shown the first few entries in the queue
 3) used the queue entry to get the message number for an undelivered message, then found the latest attempt by qmail-send to deliver that message

I'll await your reply!

Dan
IT4SOHO
 

0
 
LVL 13

Author Comment

by:LinuxGuru
ID: 24946347
Hi,

Am sorry for the late reply. Finally i got the solution.Some spam mails was stopping the mails. I have blocked all the ips and now everything works fine now. Thanks for all your suggestions.

Thank you very much.
0
 

Expert Comment

by:sphaerapharma
ID: 37411492
Also, you should verify whether or not, your domain IP is part of any RBL or CBL or not. If that is case, then also the messages will remain queued without getting transmitted and doqueue/flush / ALRM signal may not do any good.

Thanks
0

Featured Post

Want to promote your upcoming event?

Attending an event? Speaking at a conference? Or exhibiting at a tradeshow? Easily inform your contacts by using a promotional banner in your email signature. This will ensure your organization’s most important contacts are in the know.

Join & Write a Comment

When it comes to providing great business solutions, IBM and Microsoft are the two top companies excelling in the art. Both launch similar products aimed at a wide audience set and have a good customer satisfaction rate. Since their products are qui…
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now