diff options
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -91,7 +91,7 @@ func forward(targetEmail string, data []byte) error { err = smtp.SendMail(mxes[0].Host+":25", nil, `forwarder@localnet.cc`, []string{targetEmail}, builder.Bytes()) if err, ok := err.(*textproto.Error); ok { if 400 <= err.Code && err.Code < 500 { - log.Printf(`retry sleep 120s count=%v code=%v`, retryCount, err.Code) + log.Printf(`retry sleep 120s count=%v code=%v msg=%v`, retryCount, err.Code, err.Msg) time.Sleep(120 * time.Second) retryCount-- continue |