telnet yourdomain.com 25 helo yourdomain.com mail from: test@yourdomain.com rcpt to: test@yourdomain.com DATA TestMessage .
This is an effective method for testing the connection to port 25 of a mail server to ensure it’s allowing connections.