checkmail with the /go/checkmail Command

Many hosting providers block outbound connections on port 25, which stops a server from delivering email to other mail servers. /go/checkmail tells you whether your provider does this. It: Every admin action in GoAdmio has a matching /go/ command, so anything you can click you can also script.

Quick start

/go/checkmail

Options

None. Any arguments you pass are ignored.

Examples

# Run the check
/go/checkmail

# Test port 25 yourself
nc -zv -w 3 gmail-smtp-in.l.google.com 25

# See the first rules of the local firewall
iptables -S | head

Output

Message Meaning
Your ISP <name> blocking SMTP Port 25 The connection to port 25 failed or timed out. The name is taken from the whois record of the server’s IP address, and can be empty.
Port 25 is opened The connection to port 25 worked.
Port 465 is opened The SMTP certificate contains the server host name.
SMTP SSL is not installed (<hostname>) The SMTP certificate does not contain the host name. Recommended steps follow.
Port 993 is opened The IMAP certificate contains the IMAP host name.
IMAP SSL is not installed (<hostname>) The IMAP certificate does not contain the IMAP host name.

When the SMTP certificate is missing, the command also prints:

Recommended:
1 - Point a Hostname <hostname> to your Server IP <server-ip>
2 - Run "/go/installmail"

The command prints nothing when the port 25 test gives a result that matches none of the cases above, for example when nc is not installed. Port 465 and port 993 are only reported when port 25 works. No email or WhatsApp alert is sent. Each run adds a line to /var/log/go/checkmail.log.

See the full reference at /go/checkmail and the GoAdmio command index.

GoAdmio is free and open source, with no license fees and no account limits. Read the GoAdmio docs, or see why it is a free cPanel alternative at goadmio.com.

By:

Posted in:


Leave a Reply

Your email address will not be published. Required fields are marked *