boulder/mail
Daniel b64e51fe51
Adds reconnect handling for SMTP 421 events.
This commit allows the mailer to treat a SMTP 421 err as an event that
should produce a reconnect attempt. Issue #2249 describes a case where
we see this SMTP error code from the remote server when our connection
has been idle for too long. We now reconnect when this happens rather
than failing ungracefully.

The logic in the `mail-test-srv` used to force a number of initial
connections to be disconnected is changed such that half of these forced
disconnects are the normal clean connection close and half are a SMTP
421. This allows the existing integration test for server disconnects to
be reused to test the 421 reconnect logic.
2016-10-19 16:07:49 -04:00
..
mailer.go Adds reconnect handling for SMTP 421 events. 2016-10-19 16:07:49 -04:00
mailer_test.go Allows OS to choose listener port. (#2223) 2016-10-03 15:04:24 -07:00