You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ValidateConfig adds configuration options for validating a parsed email. Specifically turning DKIM as optional. DKIM validates emails in transit from tampering. However many valid email clients
237
+
// do not have it configured
238
+
// SPF could potentially be added but it poses a more significant security risk
239
+
typeValidateConfigstruct {
240
+
dkimOptionalbool
241
+
}
242
+
243
+
// NewValidateConfig returns a configuration struct for validating the parsed email. Specifically turning DKIM as optional. DKIM validates emails in transit from tampering. However many valid email clients
244
+
// do not have it configured
245
+
funcNewValidateConfig() ValidateConfig {
246
+
returnValidateConfig{}
247
+
}
248
+
249
+
// WithDKIMOptional validates DKIM values only if they exist. This allows the inbound client to support more email clients that might not support this configuration
0 commit comments