SMTP Penetration Testing

Tests SMTP servers for open relays, user enumeration, weak authentication, and misconfigurations.

1|Updated May 10, 2026
One-click install
npx skills add https://github.com/Tgoldi/claude-skills --skill smtp-penetration-testing-tgoldi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: SMTP Penetration Testing
Source: https://github.com/Tgoldi/claude-skills/tree/main/SMTP%20Penetration%20Testing
Command: npx skills add https://github.com/Tgoldi/claude-skills --skill smtp-penetration-testing-tgoldi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Mail servers often expose vulnerabilities such as open relays, enumerable user accounts, weak credentials, and missing TLS or SPF/DKIM/DMARC records, and manually checking each of these is slow and error-prone. This Skill provides a structured, phase-by-phase methodology for assessing SMTP server security with concrete commands for each test. ## Core Features & Use Cases - Service Discovery and Banner Grabbing: Identify SMTP services on ports 25, 465, 587, and 2525 using Nmap, Netcat, and Telnet, and parse server software and supported extensions. - User Enumeration and Relay Testing: Enumerate valid email accounts via VRFY, EXPN, and RCPT methods using smtp-user-enum, Nmap scripts, or Metasploit, and test for unauthorized open relay behavior. - Authentication and Encryption Auditing: Brute force weak SMTP credentials with Hydra, Medusa, or Metasploit, verify STARTTLS/SSL configuration with OpenSSL, and check SPF, DKIM, and DMARC DNS records. - Use Case: During an authorized engagement against mail.example.com, run Nmap service detection, enumerate users with smtp-user-enum, test relay behavior, audit TLS ciphers, and compile findings into a remediation report. ## Quick Start Perform an SMTP security assessment of mail.target.com including user enumeration, open relay testing, and TLS verification.

Frequently Asked Questions about SMTP Penetration Testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enumerate email users on an SMTP server?

Use smtp-user-enum with the VRFY, EXPN, or RCPT method against the target server, for example smtp-user-enum -M VRFY -U users.txt -t TARGET_IP. Alternatives include the Nmap smtp-enum-users script or the Metasploit smtp_enum auxiliary module.

How do I test if an SMTP server is an open relay?

Run nmap -p 25 --script smtp-open-relay against the target, or manually connect with Telnet and attempt to send mail from an external sender to an external recipient. If the server accepts the message with a 250 response, it is an open relay.

What tools are needed for SMTP penetration testing?

The core tools are Nmap with SMTP NSE scripts, Netcat or Telnet for manual interaction, smtp-user-enum for account enumeration, Hydra or Medusa for brute force, Metasploit for auxiliary scanners, and OpenSSL for TLS testing.

Why does VRFY user enumeration fail on modern mail servers?

Most hardened servers disable the VRFY and EXPN commands to prevent account discovery. In that case, use the RCPT TO method and analyze differences in response codes or timing between valid and invalid recipients.

Is it legal to brute force SMTP credentials?

Only with explicit written authorization from the system owner. Unauthorized brute forcing, relay abuse, or sending spam is illegal, so all testing must be documented and limited to systems you own or are contracted to assess.