Force Qmail to send Emails in Queue.

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".
LVL 13
LinuxGuruLinux Server AdministratorAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ravenplCommented:
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
Daniel McAllisterPresident, IT4SOHO, LLCCommented:
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
LinuxGuruLinux Server AdministratorAuthor Commented:
Thanks for your suggestions. I will try installing qmailctl script and let you know the results.
0
Newly released Acronis True Image 2019

In announcing the release of the 15th Anniversary Edition of Acronis True Image 2019, the company revealed that its artificial intelligence-based anti-ransomware technology – stopped more than 200,000 ransomware attacks on 150,000 customers last year.

LinuxGuruLinux Server AdministratorAuthor Commented:
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
LinuxGuruLinux Server AdministratorAuthor Commented:
I have also checked the log files. I was not able to find any reasons. :(
0
LinuxGuruLinux Server AdministratorAuthor Commented:
Please let me know how to install this svc ...
0
Daniel McAllisterPresident, IT4SOHO, LLCCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
LinuxGuruLinux Server AdministratorAuthor Commented:
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
sphaerapharmaCommented:
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Servers

From novice to tech pro — start learning today.