Domain Detective

API Reference

Class

CmdletTestSmtpBanner

Namespace DomainDetective.PowerShell
Assembly DomainDetective.PowerShell
Implements
IDisposable
Modifiers sealed
Attributes
Cmdlet("Test", "DDEmailSmtpBanner", DefaultParameterSetName = "ServerName") Alias(["Test-EmailSmtpBanner", "Test-SmtpBanner"]) OutputType([typeof(SmtpBannerInfo)])

Retrieves SMTP banner information from a host or across MX hosts.

Inheritance

Remarks

Returns a unified SmtpBannerInfo view. Use the DomainName parameter set to check all MX hosts. The returned view includes Assessments, Status, Counts, Recommendations, References and Raw (full analysis).

Examples

Check SMTP banner on a specific host.


Test-DDEmailSmtpBanner -HostName mail.example.com -Port 25
        

Check SMTP banner across MX hosts.


Test-DDEmailSmtpBanner -DomainName example.com -Port 25
        

Constructors

Methods

ProcessRecordAsync() #

Executes the cmdlet operation.

Returns

A Task representing the asynchronous operation.

Fields

public DnsEndpoint DnsEndpoint #
Parameter(Mandatory = false)

DNS server used for queries.

public String HostName #
Parameter(Mandatory = true, ParameterSetName = "ServerName", Position = 0)

SMTP host to check.

public Int32 Port #
Parameter(Mandatory = false, ParameterSetName = "ServerName", Position = 1)

SMTP port number.

public String[] DomainName #
Parameter(Mandatory = true, ParameterSetName = "DomainName", Position = 0, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true) ValidateNotNullOrEmpty ValidateDomainName

Domain(s) to check (aggregates MX hosts).

public String ExpectedHostname #
Parameter(Mandatory = false)

Hostname expected in the banner.

public String ExpectedSoftware #
Parameter(Mandatory = false)

Software string expected in the banner.

{{ include "footer" }}