summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index d32fb01..e561c1e 100644
--- a/main.go
+++ b/main.go
@@ -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