Note

It typically runs on port 25 (not encrypted), 587 (in newer versions) and other port like 465 for encrypted communications.

HTB Cheatsheet

CommandDescription
telnet <FQDN/IP> 25Connect to the service.
smtp-user-enum -M VRFY -w 15 -U /usr/share/seclists/Usernames/xato-net-10-million-usernames.txt -t IP_ADDRESS -vBrute force users. Alter the time (-w) to get better responses.

SMTP Commands

CommandDescription
AUTH PLAINAUTH is a service extension used to authenticate the client.
HELOThe client logs in with its computer name and thus starts the session.
MAIL FROMThe client names the email sender.
RCPT TOThe client names the email recipient.
DATAThe client initiates the transmission of the email.
RSETThe client aborts the initiated transmission but keeps the connection between client and server.
VRFYThe client checks if a mailbox is available for message transfer.
EXPNThe client also checks if a mailbox is available for messaging with this command.
NOOPThe client requests a response from the server to prevent disconnection due to time-out.
QUITThe client terminates the session.

You should check Footprinting Theory ๐ŸŒš to get further knowledge.