Re: [qmailtoaster] SRS - Crashing qmail-send

2012-10-27 Thread Lars Lorentz Ludvigsen

Hi Jake,

Sorry for not responding to this one before - I only recalled the issue 
with the SRS patch now, as I had to re-install the server again, and 
found out that the SRS patch for QMail was still the 0.5 version...


So - the manual patch to qmail-srs-qt-0.5.patch works - I had a 
mailserver doing some thousand deliveries per day through it, and the 
qmail-send restart issue it had was resolved. I would consider that 
manual change safe. I have not tried to do a higher level patch, as it 
has not been necessary for me.


Regards,
Lars

On 10/08/2009 19:04, Lars Lorentz Ludvigsen wrote:

Hi Jake

On 10/08/2009 18:22, Jake Vickers wrote:

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.
I will report back. Currently I am using a patched 
qmail-srs-qt-0.5.patch and not the qmail-srs-0.7.patch, so I will not 
be able to comment on any other changes incorporated.


For now the server has run without crashing for 4 days, compared to 
crashing at least once an hour before, more frequently when the load 
was high.


Regards,
Lars




Re: [qmailtoaster] SRS - Crashing qmail-send

2009-08-10 Thread Jake Vickers

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.



Re: [qmailtoaster] SRS - Crashing qmail-send

2009-08-10 Thread Lars Lorentz Ludvigsen

Hi Jake

On 10/08/2009 18:22, Jake Vickers wrote:

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.
I will report back. Currently I am using a patched 
qmail-srs-qt-0.5.patch and not the qmail-srs-0.7.patch, so I will not be 
able to comment on any other changes incorporated.


For now the server has run without crashing for 4 days, compared to 
crashing at least once an hour before, more frequently when the load was 
high.


Regards,
Lars