View Single Post
  #1   (View Single Post)  
Old 24th November 2012
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 163
Default OpenSMTPD MTA error: 150 connection timeout

A mail server that I frequently send to decided to make all incoming connections wait
for 40 seconds before replying. (to slow down spammers?)

This broke the alpine MTA as well as breaking OpenSMTPD on OpenBSD 5.1-stable.

Alpine was fixed by adding a parameter to the .pinerc configuration:

tcp-open-timeout=50

This allowed the initial tcp connection from alpine to socket 25 to wait for 50
seconds before giving up.

Unfortunately I have no similar solution for OpenSMTPD.

I would like to be able to change a parameter in the smtpd.conf file and set the
mta tcp connection timeout to 50 seconds.

(RFC 5321 section 4.5.3.2 states "Timeouts SHOULD be easily reconfigurable, preferably without recompiling the SMTP code.")

From looking at the OpenSMTPD source code it appears that 10 seconds is hard coded for the timeout.
( function mta_enter_state(), io_set_timeout(&s->io, 10000); )

I will probably go back to using sendmail on OpenBSD where I can change a configuration parameter to fix the problem...
Reply With Quote