Domain Detective

API Reference

Class

CmdletTestOpenRelay

Namespace DomainDetective.PowerShell
Assembly DomainDetective.PowerShell
Implements
IDisposable
Modifiers sealed
Attributes
Cmdlet("Test", "DDEmailOpenRelay", DefaultParameterSetName = "ServerName") Alias(["Test-EmailOpenRelay"])

Checks if an SMTP server is an open relay.

Inheritance

Remarks

Outputs a view object with full raw analysis attached at Raw.

Examples

Test a mail server.

Part of the DomainDetective project.


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

Constructors

Methods

BeginProcessingAsync() #

Initializes logging and helper classes.

Returns

A Task representing the asynchronous operation.

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) ValidateNotNullOrEmpty

SMTP host name to check.

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

SMTP port number.

{{ include "footer" }}