qmail smtp server no longer starts up using latest kernel

Bug #1699608 reported by Wilb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qmail (Ubuntu)
New
Undecided
Unassigned

Bug Description

Following on from some patching I've done this week after the release of the latest kernels, I observed that qmail-smtpd no longer starts due to the following error:

"tcpserver: fatal: unable to figure out port number for smtp"

You will see this is logged repeatedly out to "/var/log/qmail/smtpd/current"

I've just spent a little time tracing it and have concluded that the softlimit defined in "/etc/service/qmail-smtpd/run" is no longer high enough which presumably gets in the way of it loading /etc/services into memory.

Changing the softlimit from 7000000 to 9000000 allows the service to start up as before, as does rolling back to the previous kernel. Presumably the stack clash patching has caused this change in memory requirements for the process and hence the softlimit increase.

I've just provisioned a clean Ubuntu 16.04 host to confirm that it's not any existing configuration:

 * Installed Ubuntu 16.04 on Digital ocean
 * edit /etc/hosts to ensure a FQDN is present
 * apt-get update
 * apt-get install qmail
 * qmailctl stat
   "/etc/service/qmail-smtpd: down 1 seconds, normally up, want up"
 * tail /var/log/qmail/current
   "@40000000594ae38c2c31ed3c status: local 0/10 remote 0/20"

I've observed the same issue on hosts running Ubuntu 16.04, 14.04 and Debian 8 for what it's worth.

Revision history for this message
Wilb (ubuntu-wilb) wrote :

Apologies, I missed a couple of lines from my steps to reproduce when copy & pasting it over from my terminal history.

It should read something more like:

 * Installed Ubuntu 16.04 on Digital ocean
 * edit /etc/hosts to ensure a FQDN is present
 * apt-get update
 * apt-get install qmail
 * qmailctl stat & tail -1 /var/log/qmail/smtp/current
   "/etc/service/qmail-smtpd: down 1 seconds, normally up, want up"
   "tcpserver: fatal: unable to figure out port number for smtp"
 * sed -i s/7000000/900000/ /etc/service/qmail-smtpd/run
 * tail -1 /var/log/qmail/smtp/current
   "status: local 0/10 remote 0/20"

Revision history for this message
Wilb (ubuntu-wilb) wrote :

*sigh* - even the second attempt I missed a zero in that sed command. I'll take myself to bed soon. It should have read:

 * sed -i s/7000000/9000000/ /etc/service/qmail-smtpd/run

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.