Skip to content

Commit 0eb87b8

Browse files
authored
expiration-mailer: Don't audit log "no usable contact address" (#7529)
Fixes #7528
1 parent 3786401 commit 0eb87b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/expiration-mailer/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,9 @@ func (m *mailer) sendToOneRegID(ctx context.Context, conn bmail.Conn, regID int6
456456
var badAddrErr *bmail.BadAddressSMTPError
457457
if errors.Is(err, errNoValidEmail) || errors.As(err, &badAddrErr) {
458458
m.updateLastNagTimestamps(ctx, parsedCerts)
459+
// Some accounts have no email; some accounts have an invalid email.
460+
// Treat those as non-error cases.
461+
return nil
459462
}
460463

461464
m.stats.errorCount.With(prometheus.Labels{"type": "SendNags"}).Inc()

0 commit comments

Comments
 (0)