diff --git a/dmarcdb/eval.go b/dmarcdb/eval.go index 1bd87f6..14fc3b0 100644 --- a/dmarcdb/eval.go +++ b/dmarcdb/eval.go @@ -728,8 +728,8 @@ specified in the "rua" field of the DMARC record for your domain. Report domain: %s Submitter: %s Report-ID: %s -Period: %s - %s in UTC -`, dom, mox.Conf.Static.HostnameDomain, report.ReportMetadata.ReportID, beginTime.Format(time.DateTime), endTime.Format(time.DateTime)) +Period: %s - %s UTC +`, dom, mox.Conf.Static.HostnameDomain, report.ReportMetadata.ReportID, beginTime.UTC().Format(time.DateTime), endTime.UTC().Format(time.DateTime)) // The attached file follows the naming convention from the RFC. ../rfc/7489:1812 reportFilename := fmt.Sprintf("%s!%s!%d!%d!%s.xml.gz", mox.Conf.Static.HostnameDomain.ASCII, dom.ASCII, beginTime.Unix(), endTime.Add(-time.Second).Unix(), report.ReportMetadata.ReportID) diff --git a/smtpserver/server.go b/smtpserver/server.go index db735e8..1b382e6 100644 --- a/smtpserver/server.go +++ b/smtpserver/server.go @@ -2480,6 +2480,7 @@ func (c *conn) deliver(ctx context.Context, recvHdrFor func(string) string, msgW q := bstore.QueryTx[store.Message](tx) q.FilterNonzero(store.Message{MsgFromOrgDomain: m.MsgFromOrgDomain}) q.FilterEqual("Notjunk", true) + q.FilterEqual("IsReject", false) exists, err := q.Exists() if err != nil { return fmt.Errorf("querying for non-junk message from organizational domain: %v", err)