smtpproxy icon indicating copy to clipboard operation
smtpproxy copied to clipboard

Rework upstream SMTP connection handling

Open jorgenschaefer opened this issue 10 years ago • 0 comments

In an ideal world, we can detect the relay host from OVERRIDE_RECIPIENT if it is set using net.LookupMX. When connecting to the first fails, we can connect to the next. At the same time, we can try and keep a connection open for a while in case we receive multiple messages in one session.

This is tricky, though, as we have to carefully distinguish network errors from mail sending errors.

jorgenschaefer avatar Nov 12 '15 22:11 jorgenschaefer