Here's a really small patch to prefer 'timeoutsmtpd' over 'timeout' for the connection timeouts for TcpServer. In our migration from qmail, we never added the 'timeout' file, but we had the timeoutsmtpd file. So, prefer that instead. (Our connections weren't timing out which was rather annoying.)
Hi Justin -
Since the 'timeoutsmtpd' file is optional for qmail installations (smtpd defaults to 1200 seconds), perhaps this is more appropriate?
Index: lib/Qpsmtpd/TcpServer.pm
===================================================================
RCS file: /cvs/public/qpsmtpd/lib/Qpsmtpd/TcpServer.pm,v
retrieving revision 1.12
diff -u -r1.12 TcpServer.pm
--- lib/Qpsmtpd/TcpServer.pm 19 Nov 2004 08:44:24 -0000 1.12
+++ lib/Qpsmtpd/TcpServer.pm 25 Nov 2004 19:09:33 -0000
@@ -52,7 +52,9 @@
sub read_input {
my $self = shift;- my $timeout = $self->config('timeout');
+ my $timeout = $self->config('timeoutsmtpd') # qmail smtpd control file
+ or $self->config('timeout') # qpsmtpd override
+ or 1200; # default smtpd value
alarm $timeout;
while (<STDIN>) {
alarm 0;John
