diff options
author | Yves Fischer <yvesf+git@xapek.org> | 2021-02-18 23:42:07 +0100 |
---|---|---|
committer | Yves Fischer <yvesf+git@xapek.org> | 2021-02-18 23:42:07 +0100 |
commit | 8a530eb8139e9cb235355b80d9cbfdaa6b2c2e43 (patch) | |
tree | f8e985c475cded6bf7581ab265c7cda111d0f3d4 | |
parent | c440fdac0c6637069d41fc8fd3506ec31e52a469 (diff) | |
download | smtp-forward-8a530eb8139e9cb235355b80d9cbfdaa6b2c2e43.tar.gz smtp-forward-8a530eb8139e9cb235355b80d9cbfdaa6b2c2e43.zip |
logmsg
-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 |