MailBee.NET Objects 7.2

DnsCache.SmtpMXNextAttemptInterval Property

Gets or sets the amount of time (in milliseconds) the failed SMTP MX server spends in quarantine.

public static int SmtpMXNextAttemptInterval {get; set;}

Property Value

The length of the period (in milliseconds) the failed SMTP MX server spends in quarantine. The default value is 1000 (1 second).

Remarks

If the SMTP MX server could not be contacted SmtpMXMaxFailureCount times, it's set in quarantine for SmtpMXNextAttemptInterval milliseconds. During this interval, the server is not used (other servers used if any, or an error occurs if all the servers are in quarantine). When SmtpMXNextAttemptInterval elapses, MailBee may try this server again. If it fails again, it's been put in quarantine again (this time, SmtpMXMaxFailureCount will have no effect since the server is already known as dead).

Note   This property will have no effect if DNS MX caching is disabled (Enabled is false).

Exceptions

Exception Type Condition
MailBeeInvalidArgumentException value is negative.

See Also

DnsCache Class | MailBee.DnsMX Namespace