Skip to content
davila7 avatar

SMTP Penetration Testing

Structured walkthrough for assessing SMTP servers covering banner grabbing, user enumeration, open relay checks, and authentication testing.

CCM score
61 of 100
skills.sh installs
185
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers service discovery, banner grabbing, command enumeration, user enumeration, relay testing, brute force, injection, TLS, and SPF/DKIM/DMARC review
  • Includes tool invocations for smtp-user-enum, Nmap SMTP scripts, Hydra, Medusa, and Metasploit modules, plus manual Telnet and Netcat steps
  • Provides SMTP command and response code reference tables for interpreting VRFY, EXPN, and RCPT results
  • Designed for penetration testers assessing mail server security under written authorization

Install

$ npx -y skills add davila7/claude-code-templates --skill 'SMTP Penetration Testing' -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

SMTP Penetration Testing

Purpose

Conduct comprehensive security assessments of SMTP (Simple Mail Transfer Protocol) servers to identify vulnerabilities including open relays, user enumeration, weak authentication, and misconfiguration. This skill covers banner grabbing, user enumeration techniques, relay testing, brute force attacks, and security hardening recommendations.

Prerequisites

Required Tools

# Nmap with SMTP scripts
sudo apt-get install nmap

# Netcat
sudo apt-get install netcat

# Hydra for brute force
sudo apt-get install hydra

# SMTP user enumeration tool
sudo apt-get install smtp-user-enum

# Metasploit Framework
msfconsole

Required Knowledge

  • SMTP protocol fundamentals
  • Email architecture (MTA, MDA, MUA)
  • DNS and MX records
  • Network protocols

Required Access

  • Target SMTP server IP/hostname
  • Written authorization for testing
  • Wordlists for enumeration and brute force

Outputs and Deliverables

Details

Repository
github.com/davila7/claude-code-templates
Category
Security
First seen
Jun 3, 2026

Questions

What does the SMTP Penetration Testing skill do?

It guides security assessments of SMTP mail servers, covering banner grabbing, user enumeration with VRFY, EXPN and RCPT, open relay testing, and brute force login checks. It also covers TLS testing, SPF, DKIM and DMARC analysis, and ends with remediation recommendations.

How do I test an SMTP server for open mail relay?

The skill shows a manual telnet test that sends mail from an outside sender to an external recipient and checks whether the server accepts it, plus an Nmap smtp-open-relay script and a Metasploit relay module. A 250 OK response on the external recipient means the server is an open relay.

What tools do I need to use the SMTP Penetration Testing skill?

The skill calls for Nmap with SMTP scripts, netcat, Hydra, smtp-user-enum and Metasploit, plus a wordlist for enumeration and brute force. It also requires the target server address and written authorization for the test.

How do I install the SMTP Penetration Testing skill?

Run npx -y skills add davila7/claude-code-templates --skill 'SMTP Penetration Testing' -y in your project. After that, the agent can carry out SMTP security assessments such as user enumeration and relay checks.

More from davila7/claude-code-templates

All 398

Similar to SMTP Penetration Testing

More Security