Domain Detective

API Reference

Class

SMTPBannerAnalysis

Namespace DomainDetective
Assembly DomainDetective
Implements

Captures SMTP greeting banners and validates expected hostname and software strings.

Inheritance

  • Object
  • SMTPBannerAnalysis

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

Methods

public async Task AnalyzeServer(String host, Int32 port, InternalLogger logger, CancellationToken cancellationToken = null) #
Returns: Task

Checks a single SMTP server banner.

Parameters

host System.String requiredposition: 0
port System.Int32 requiredposition: 1
logger DomainDetective.InternalLogger requiredposition: 2
cancellationToken System.Threading.CancellationToken = null optionalposition: 3
public async Task AnalyzeServers(IEnumerable<String> hosts, Int32 port, InternalLogger logger, CancellationToken cancellationToken = null) #
Returns: Task

Checks multiple hosts on the same port.

Parameters

hosts System.Collections.Generic.IEnumerable{System.String} requiredposition: 0
port System.Int32 requiredposition: 1
logger DomainDetective.InternalLogger requiredposition: 2
cancellationToken System.Threading.CancellationToken = null optionalposition: 3

Properties

public String Subject { get; set; } #

Subject of the check (domain or host).

public Dictionary<String, BannerResult> ServerResults { get; } #

Results for each host and port.

public TimeSpan Timeout { get; set; } #

Connection timeout for banner retrieval.

public String ExpectedHostname { get; set; } #

Expected hostname that should appear in the banner.

public String ExpectedSoftware { get; set; } #

Expected software string that should appear in the banner.

public virtual List<Assessment> Assessments { get; } #

Structured assessments captured during banner checks.

public IReadOnlyList<RecommendationAdvice> Recommendations { get; } #

Represents the recommendations value.

{{ include "footer" }}