expiration-mailer: Don't audit log "no usable contact address" (#7529)

Fixes #7528
This commit is contained in:
Phil Porada 2024-06-06 18:30:59 -04:00 committed by GitHub
parent 3786401f10
commit 0eb87b83ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -456,6 +456,9 @@ func (m *mailer) sendToOneRegID(ctx context.Context, conn bmail.Conn, regID int6
var badAddrErr *bmail.BadAddressSMTPError
if errors.Is(err, errNoValidEmail) || errors.As(err, &badAddrErr) {
m.updateLastNagTimestamps(ctx, parsedCerts)
// Some accounts have no email; some accounts have an invalid email.
// Treat those as non-error cases.
return nil
}
m.stats.errorCount.With(prometheus.Labels{"type": "SendNags"}).Inc()