iSMTP
iSMTP is an SMTP server tester for user enumeration, internal spoofing, and relay testing. It supports VRFY and RCPT TO methods to identify valid users on target SMTP servers.
Description
iSMTP is designed to test SMTP servers for vulnerabilities related to user enumeration, email spoofing, and open relays. It helps security professionals identify misconfigured SMTP services that could leak valid usernames or allow unauthorized email relay and spoofing. The tool is particularly useful in penetration testing scenarios where assessing email server security is required.
Use cases include enumerating valid user accounts via VRFY or RCPT TO commands, checking for internal spoofing capabilities by crafting custom sender and recipient details, and verifying external relay permissions. It supports testing single hosts or lists of SMTP servers from files, making it efficient for batch operations.
The tool outputs results clearly, marking valid users with [+ success] and invalid ones with [- invalid], and can save detailed logs to files for further analysis.
How It Works
iSMTP connects to SMTP servers on specified IP:port addresses and performs protocol-level tests. For enumeration, it uses SMTP VRFY (type 1) or RCPT TO (type 2) commands against a dictionary of usernames, analyzing server responses to distinguish valid from invalid users. Spoofing tests involve sending custom MAIL FROM, RCPT TO, and sender names to check internal relay policies. Relay testing sends emails to external domains to detect open relays. It supports timeouts and combines tests in any order.
Installation
sudo apt install ismtpFlags
Examples
ismtp -f smtp-ips.txt -e /usr/share/wordlists/metasploit/unix_users.txtismtp -h 192.168.1.25:25 -e /usr/share/wordlists/metasploit/unix_users.txtismtp -f smtp-ips.txt -m -i consultant@example.com -s sender@example.com -r recipient@example.comismtp -h target:25 -xismtp -f servers.txt -e users.txt -l 1ismtp -h host:25 -e emails.txt -t 20 -oismtp -f list.txt -m -x -e dict.txt