SMTP is a text protocol used to send emails, it allows you to send commands so a server can understand.
it uses port 25 and certainly, it does not support packet encryption when exchanging.
There's also a bunch of commands that are used in a restrictive mode, it can expose sensitive data.
Example:
First: start a connection
> nc -nv [Metasploitable 2 IP] 25
>> vrfy msfadmin
>> mail from: david
>> rcpt to: david
If the user is registered, it will receive the 250 or the 252 code.
How to run it:
python smtp.py [Metasplotable 2 IP] vrfy