Noel Jones: > Trying out the new \c feature of smtpd_reject_footer and getting > unexpected behavior. While everything looks normal in the logs, the > sending client gets a timeout/lost connection. > > > Oh, found a workaround. Add \n at the end of smtpd_reject_footer.
When I tested this I needed no "extra" \n in the reply footer. All the initial \c does is to prevent *prepending* \r\n before the footer text; this is obvious from the code. The \c has no effect on appending the final \r\n. That decision is made independently, also obvious from the code. Now, the effect of \c *after* the beginning of the footer is undefined. Don't do that. Also undefined is the effect of \c with malformed responses, such as responses with bare \n characters instead of \r\n. Wietse