Qmail on x86_84 softlimit error

I recently installed qmail (mail-mta/netqmail in Portage) on an Intel based server under x86_64 Gentoo. Everything seemed fine, but when qmail-smtpd tried to receive remote email, it would die with the following error:

2008-08-22 10:51:38.328444500 tcpserver: status: 1/40
2008-08-22 10:51:38 tcpserver: pid 5004 from 192.168.0.33
2008-08-22 10:51:38 tcpserver: ok 5004 franklin:192.168.0.4:25 newyork:192.168.0.33::4878
2008-08-22 10:51:38 /var/qmail/bin/qmail-smtpd: error while loading shared libraries: \
   libcom_err.so.2: failed to map segment from shared object: Cannot allocate memory
2008-08-22 10:51:38 tcpserver: end 5004 status 32512
2008-08-22 10:51:38 tcpserver: status: 0/40

Google didn’t show any association between libcom_err and qmail, but “failed to map segment” turned up other problems associated with softlimit.

The softlimit settings in qmail are in /var/qmail/control/conf-common. But they can be overridden in /var/qmail/control/conf-smtpd (since that was the only service which was having trouble). I added SOFTLIMIT_OPTS=”-m 32000000″, restarted the qmail-smtpd service, and it started receiving like a champ.

Tags:

Leave a Reply