Testing and Debugging

Sending a Test Email via the Internal Mail Relay

Sending a Test Email via PowerShell

You can use PowerShell to send a test email through the Internal relay.

Note:

Ensure that you change the IP address and email addresses.

Send-MailMessage `
        -SmtpServer "10.0.1.129" `
        -Port 25 `
        -From "smtprelaytest@customerdomain.com" `
        -To "mail@domain.com" `
        -Subject "SMTP relay test mail" `
        -Body "This is SMTP unencrypted"

Sending a Test Email via curl

For more detailed debugging information, use curl because it prints much more debugging information.

curl --url "smtp://10.0.1.129:25" ^
        --mail-from "smtprelay@customerdomain.com" ^
        --mail-rcpt "test@recipient.com" ^
        --upload-file mail.txt ^
        -v

mail.txt:

From: smtprelay@customerdomain.com
        To: test@recipient.com
        Subject: SMTP Relay Test
        
        This mail has been sent via mail relay

Ensure that the recipient address in mail.txt matches the address specified in the --mail-rcpt parameter. Otherwise, delivery may fail.