Skip to main content
SMTP (Simple Mail Transfer Protocol) typically runs on ports 25, 587, and 465.

Check open ports

SMTP verb testing

Nmap scripts

The smtp-open-relay script checks whether everyone is allowed to send an email.

Check commands

  1. Log in to SMTP and check if the VRFY command is allowed.
  2. Perform enumeration on the SMTP service.

Enumerate users

Change -w if the server verification is slow.

Steps

SMTP enumeration steps

Dangerous settings

This means everyone from other networks is allowed to send an email without firewall verification.

Login to SMTP

Commands