Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 19th May 2011, 16:33
Djamu Djamu is offline
Join Date: Sep 2007
Posts: 51
Thanks: 2
Thanked 12 Times in 7 Posts
Default saslauthd memory leak > fix

This is an old issue that still isn't resolved on debian & derivates ( others ? )
maybe someone should include it in the howtos.

saslauthd's memory usage starts to climb handling invalid authentication requests, eventually eating all your server memory ( & swap ).
this is in fact a very serious issue, as it facilitates (D)DOS attacks by someone sending lots of crap auth. requests until the OOM process killer kicks in.

there's an easy workaround by changing /etc/default/saslauthd
OPTIONS="-c -m /var/spool/postfix/var/run/saslauthd -r"
OPTIONS="-n 0 -c -m /var/spool/postfix/var/run/saslauthd -r"
adding "-n 0" effectively prevents the saslauthd daemon from using thread processes by using forks instead.
( on 1 of my servers it used up 8GB and 16GB swap.... which was freed up instantaneously upon changing the config and invoking /etc/init.d/saslauthd restart )

if anybody has a better solution.. feel free to post

my 5 cents
Windows, the only virus you pay for

Last edited by Djamu; 19th May 2011 at 16:42.
Reply With Quote
The Following 4 Users Say Thank You to Djamu For This Useful Post:
bharathchari (7th September 2011), Bicet (11th July 2011), erosbk (19th May 2011), falko (20th May 2011)
Sponsored Links



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory leak problem cronjob (server.sh/server.php) zsirmo General 2 1st November 2010 13:06
postfix saslauthd, Please! help (going nuts) telmathedog HOWTO-Related Questions 7 2nd September 2010 10:53
Need some Hints to "The Perfect Server - Debian Lenny (Debian 5.0) [ISPConfig 3]" wahid HOWTO-Related Questions 10 25th August 2010 15:18
No run directory defined for saslauthd, not starting sbin Server Operation 1 30th January 2010 03:06
Memory leak? oom-killer problem yikes! Stokesy Server Operation 7 29th July 2006 12:48

All times are GMT +2. The time now is 20:21.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.