fix lmtp delivery regressions introduced in previous:
authorjung <jung@openbsd.org>
Sun, 18 Oct 2015 18:59:51 +0000 (18:59 +0000)
committerjung <jung@openbsd.org>
Sun, 18 Oct 2015 18:59:51 +0000 (18:59 +0000)
commitec2f453b95eb8c20f6418ebd69c83eed0cb25c1f
tree77192561d48d79d1e7e3b95a7bc4c41e46d2c5f3
parent772a9c3659a756ebecd1062c30c00e4c7e18f9c0
fix lmtp delivery regressions introduced in previous:

- strip \r\n and add them explicitly to all DATA lines
- fix DATA termination
- add missing QUIT command (and check for reply)
- remove free() and fclose() and use exit(3) instead of _exit(2)
  to handle cleanup

ok sunil gilles
usr.sbin/smtpd/delivery_lmtp.c