mirror of
https://github.com/neilalexander/yggmail.git
synced 2026-05-09 05:06:28 +03:00
Back to hex keys after all
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package smtpsender
|
||||
|
||||
import (
|
||||
"encoding/hex"
|
||||
"fmt"
|
||||
"log"
|
||||
"math"
|
||||
@@ -8,7 +9,6 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/emersion/go-smtp"
|
||||
"github.com/jxskiss/base62"
|
||||
"github.com/neilalexander/yggmail/internal/config"
|
||||
"github.com/neilalexander/yggmail/internal/transport"
|
||||
"go.uber.org/atomic"
|
||||
@@ -93,7 +93,7 @@ func (q *Queue) run() {
|
||||
}
|
||||
defer client.Close()
|
||||
|
||||
if err := client.Hello(base62.EncodeToString(q.queues.Config.PublicKey)); err != nil {
|
||||
if err := client.Hello(hex.EncodeToString(q.queues.Config.PublicKey)); err != nil {
|
||||
q.queues.Log.Println("Remote server", q.destination, "did not accept HELLO:", err)
|
||||
return fmt.Errorf("client.Hello: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user