On Wed, Jun 11, 2025 at 03:35:07PM +0000, Pedro David Marco via Postfix-users wrote:
> I have tried settingĀ smtpd_timeout = 60sĀ but this only controls > per-command timeouts, and it doesn't ensure disconnection after some > idle time. That's not true. I configured a loopback SMTP listener on port 24, and with that I see: $ time perl -MIO::Socket -e ' my $s = IO::Socket::INET->new(PeerHost => "127.0.0.1", PeerPort => 24) or die "connect: $!\n"; $s->autoflush(1); print $s->getline(); print $s qq{EHLO amnesiac.local\r\n}; while(my $l = $s->getline()) { print $l };' 220 amnesiac.local ESMTP Postfix 250-amnesiac.local 250-PIPELINING 250-SIZE 157286400 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-DSN 250-SMTPUTF8 250 CHUNKING 421 4.4.2 amnesiac.local Error: timeout exceeded real 0m3.028s user 0m0.013s sys 0m0.002s When a remote client is idle for more than $smtpd_timeout Postfix drops the connection with a "421" response as seen above. -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org