Lars Lorentz Ludvigsen wrote:
All,

I have over the last week been forced to dig into a behavior my server has been exerting over the last months; namely that of qmail-send crashing (but automatically restarting) frequently with the error message "alert: unable to switch to queue directory". With it goes all qmail-remote processes, and the delivery sequence number starts all over again at 1. Some users report that messages affected end up being delivered twice. I operate two qmail-toaster servers; and only the server with SRS enabled is having the problem.

After studying the source I discovered that it was all caused by the following in the qmail-srs-qt-0.5.patch: if (chdir("queue") == -1) { log1("alert: unable to switch to queue directory\n"); _exit(111); }

Looking at http://opensource.mco2.net/qmail/srs/ I see that version 0.6 contains a reference to a bug regarding chdir(), and the new code is: if (chdir(auto_qmail) == -1) { log1("alert: unable to switch to home directory\n"); _exit(111); } if (chdir("queue") == -1) { log1("alert: unable to switch to queue directory\n"); _exit(111); }

I have not received this behavior before, but I also do not use SRS much.
I plan on updating as many patches to newer/updated versions as I can, so if you would not mind, keep us appraised on how the new version works. I would have updated it eventually anyway, but at least this way I can get some solid feedback on it before releasing it to the masses.
Thanks.

Reply via email to