Basic Connections
Enumeration
NTLM Info Disclosure
If the server supports NTLM auth (Windows), send a challenge to extract version info:Username Enumeration
- VRFY
- RCPT TO
- EXPN
- Tools
Sending Emails
Email Security Mechanisms
SPF (Sender Policy Framework)
+= PASS (default)?= NEUTRAL~= SOFTFAIL (accept but mark)-= FAIL (reject)
DKIM (DomainKeys Identified Mail)
DMARC
Avoiding Email Security Gateways (SEGs)
SMTP Spoofing
Open Relay Testing
SMTP Smuggling
SMTP smuggling allows bypassing SPF, DKIM, and DMARC protections by exploiting line ending interpretation differences between SMTP servers. Some servers accept<LF>.<LF> while others only accept <CR><LF>.<CR><LF>, enabling message injection.
Config Files
Post-Exploitation: Headers Reveal Internal Structure
If you can make the victim send you an email (e.g., contact form), inspect the headers:- Internal server names and IP addresses
- Antivirus software info (
X-Virus-Scannedheader) - Internal relay hops
NDN (Non-Delivery Notification) Harvesting
Send emails to non-existent addresses. The bounce-back NDN often contains:- Internal server names
- IP addresses of mail infrastructure
- AV software information