The handling outside of a HELO,HELO appear to work correctly. Setting the Postfix smtp-sink to return a soft bounce on DATA, for instance, presents to issues whatsoever. Just HELO,EHLO.
Here's the full command line for the Postfix sink: sudo /usr/sbin/smtp-sink -Q EHLO,HELO -u root -v 0.0.0.0:25 40 On Friday, July 1, 2016 at 2:17:58 PM UTC-6, Matthew Altman wrote: > > https://github.com/golang/go/blob/master/src/net/smtp/smtp.go#L76-L79 > > This method can make two distinct SMTP calls. First an EHLO and then a > HELO. > If the EHLO fails it attempts HELO. However, if the connection was closed > remotely after EHLO the HELO will of course also fail but the error message > returned will be a simple EOF from the HELO and the real response will be > dropped. > This can be duplicated by sending to a postfix smtp-sink with the flag -Q > EHLO,HELO which returns a 4xx response and disconnects. > > Since two separate calls are made, maybe it would make sense for this > method to return two errors? Or perhaps a single composite error? > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.