SMTP - 25
Port
Service
TCP/25
SMTP Unencrypted
TCP/143
IMAP4 Unencrypted
TCP/110
POP3 Unencrypted
TCP/465
SMTP Encrypted
TCP/993
IMAP4 Encrypted
TCP/995
POP3 Encrypted
Telnet
# to interact with smtp server
telnet ip 25
# HELO/EHLO
HELO mail1.nothing.htb
EHLO mail1.nothing.htb
# VRFY - can be used to enumerate existing users on the system
VRFY root
# EXPN - when used with a distribution list, it will list all users on that list
EXPN john
# USER - we can use the command USER followed by the username, and if the server responds OK. This means that the user exists on the server.
USER Eren
# find all SMTP error codes here : <https://serversmtp.com/smtp-error/>
# Send an Email
EHLO nothing.htb
MAIL FROM: <user@nothing.htb>
RCPT TO: <user@nothing.htb>
DATA
QUITNmap
Brute force users
Last updated