From 132f08913be9aa3740c77ea38b366d80cbce9a6f Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Sun, 12 Mar 2023 13:22:51 +0100 Subject: [PATCH] log msgfrom for incoming delivered messages --- smtpserver/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smtpserver/server.go b/smtpserver/server.go index a046827..f1617e5 100644 --- a/smtpserver/server.go +++ b/smtpserver/server.go @@ -2401,7 +2401,7 @@ func (c *conn) deliver(ctx context.Context, recvHdrFor func(string) string, msgW return } metricDelivery.WithLabelValues("delivered", a.reason).Inc() - log.Info("incoming message delivered", mlog.Field("reason", a.reason)) + log.Info("incoming message delivered", mlog.Field("reason", a.reason), mlog.Field("msgfrom", msgFrom)) conf, _ := acc.Conf() if conf.RejectsMailbox != "" && messageID != "" {