Sometimes the Qmail Queue gets corrupted. As a result you might get the Same Mail Delivered more then once to Recipients and some other problems. In such cases the best solution is to Repair/Rebuild the Queue. For this I use a Script queue-repair-0.9.0. You can Find the script here queue_repair . Download it and rename it as queue_repair.py and make it executable. You need to follow some steps to Repair / Rebuild the queue. But remeber one thing, After you Repair the queue all mails will be lost which are currently in queue.
Now First you have to stop Qmail Process. Then Login to your Qmail Queue folder. In my Case it’s /var/qmail/queue/. Then just give ls -l command to see how many Direcroties are there in Different Queue Directories. The Output is something like this.
drwx—— 2 qmails qmail 4096 Mar 18 11:18 bounce
drwx—— 201 qmails qmail 4096 Mar 14 06:55 info
drwx—— 2 qmailq qmail 4096 Mar 18 11:20 intd
drwx—— 201 qmails qmail 4096 Mar 14 06:55 local
Looking at this Output we can see that there are 201 SubDir’s under the info dir. So it means Your conf-split value is 201-2 =199. You need this value to Repair your queue as the structure should be the same otherwise qmail will not work. What ever the Value you get from your ls -l output just subtract 2 from that and you will get the desired number. Then use this value like this
queue_repair.py -c -s 199 -n
It will rebuild your Queue. After successfull Repair restart the qmail process and inspect the logs to see everything is working or not. Hope this helps……
Recent Comments