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
We encountered an issue with the CheckMX functionality as it currently lacks a configurable option for disabling this check. It would be highly beneficial to have a similar functionality to that of CheckSMTP, which already implements an option to enable or disable SMTP checks using a bool variable:
func (v *Verifier) CheckSMTP(domain, username string) (*SMTP, error) {
if !v.smtpCheckEnabled {
return nil, nil
}
// ...
}
To address this limitation, I propose introducing a new field specifically for enabling or disabling MX checks in the Verifier. This approach would align with the existing implementation in CheckSMTP.
For example, the modified code snippet could look like this:
func (v *Verifier) CheckMX(domain string) (*Mx, error) {
if !v.mxCheckEnabled {
return nil, nil
}
// ...
}
I think it makes sense to set mxCheckEnabled value to true by default, so it won't change current behavior.
I am enthusiastic about contributing to this enhancement if my proposal aligns with your vision.
The text was updated successfully, but these errors were encountered:
We encountered an issue with the CheckMX functionality as it currently lacks a configurable option for disabling this check. It would be highly beneficial to have a similar functionality to that of CheckSMTP, which already implements an option to enable or disable SMTP checks using a bool variable:
To address this limitation, I propose introducing a new field specifically for enabling or disabling MX checks in the Verifier. This approach would align with the existing implementation in CheckSMTP.
For example, the modified code snippet could look like this:
I think it makes sense to set mxCheckEnabled value to true by default, so it won't change current behavior.
I am enthusiastic about contributing to this enhancement if my proposal aligns with your vision.
The text was updated successfully, but these errors were encountered: