Help - Search - Members - Calendar
Full Version: Plesk 7.5.0 Qmail/TLS Hotfix
The Planet Forums > Control Panels > Plesk
mOjO
If you've upgraded to Pleask 7.5.0 and notice very high loads on qmail-smtpd and slow TLS then apply the following hotfix.

I dunno if i'm violating anybody's rules or whatever but if so the moderators can delete my post and a team of lawyers can tear me into little pieces and use me for salad garnish. icon_twisted.gif

until then... i'm going to share this hotfix.

CODE
#!/bin/sh



# Update temporary RSA and DH keys

# Frederik Vermeulen 2004-04-19 GPL



# Modifications for Plesk by SWsoft 2004-12-11 GPL



umask 0077 || exit 0



export PATH="$PATH:/usr/local/bin/ssl:/usr/sbin"



QMAIL_D=`cat /etc/psa/psa.conf | grep QMAIL_ROOT_D | awk '{ print $2}'`

PRODUCT_ROOT_D=`cat /etc/psa/psa.conf | grep PRODUCT_ROOT_D | awk '{ print $2}'`

QMAIL_CONTROL_D=${QMAIL_D}/control

SSL_BIN=${PRODUCT_ROOT_D}/admin/sbin/openssl



${SSL_BIN} genrsa -out ${QMAIL_CONTROL_D}/rsa512.new 512 &&

chmod 600 ${QMAIL_CONTROL_D}/rsa512.new &&

chown qmaild:0 ${QMAIL_CONTROL_D}/rsa512.new &&

mv -f ${QMAIL_CONTROL_D}/rsa512.new ${QMAIL_CONTROL_D}/rsa512.pem

echo



${SSL_BIN} dhparam -2 -out ${QMAIL_CONTROL_D}/dh512.new 512 &&

chmod 600 ${QMAIL_CONTROL_D}/dh512.new &&

chown qmaild:0 ${QMAIL_CONTROL_D}/dh512.new &&

mv -f ${QMAIL_CONTROL_D}/dh512.new ${QMAIL_CONTROL_D}/dh512.pem

echo



${SSL_BIN} dhparam -2 -out ${QMAIL_CONTROL_D}/dh1024.new 1024 &&

chmod 600 ${QMAIL_CONTROL_D}/dh1024.new &&

chown qmaild:0 ${QMAIL_CONTROL_D}/dh1024.new &&

mv -f ${QMAIL_CONTROL_D}/dh1024.new ${QMAIL_CONTROL_D}/dh1024.pem


dump that into a file called "qmail_fix.sh" or whatever and chmod 750 it. Execute it, and then stop qmail, killall any errant threads of qmail-smtpd or qmail-remote, and start qmail again.
Anonymous
does this fix the autoresponder issues?
mOjO
nope.
thanh
If you upgrade to 7.5.1, it fixes both qmail-smtpd + autoresponder issues.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.