SMTP Enumeration
Simple Mail Transfer Protocol has VRFY request asks the server to verify an email address, while EXPN asks the server for the membership of a mailing list. PORT 25
Manual
- nc -nv <ip> 25
- VRFY <user> if user not exist in mail server , it give error
Automated script
Send Mail on SMTP
- telnet <ip> 25
- Set sender’s email
MAIL FROM: sender@adress.ext
- Set recipient mail
RCPT TO: recipient@adress.ext
- To write the message, type DATA and press ‘Enter’
DATA
- On the first line type ‘SUBJECT: Your Subject’ and press ‘Enter’ twice
SUBJECT: Your Subject
- Continue typing your message like
Hello,
this is test message
- Put a single period (.) on a line by itself and press ‘Enter’ to send your message.
.
- Close the connection
QUIT
Reference:
https://www.shellhacks.com/send-email-smtp-server-command-line/