MailEnum β IMAPS / POP3S Enumeration Toolkit
A Python-based mail service enumeration tool designed for authorized penetration testing, CTFs, and security labs. MailEnum connects to IMAPS/POP3S services, performs automatic enumeration, exposes available mailboxes/messages, and provides OpenSSL-based TLS inspection.
Features π IMAPS
MailEnum supports:
IMAPS connection over TLS Username/password authentication IMAP CAPABILITY enumeration IMAP ID enumeration Automatic mailbox discovery Mailbox status enumeration Mailbox selection Message enumeration Message header retrieval Complete message retrieval Message searching Message deletion Mailbox creation Mailbox deletion Mailbox renaming Re-enumeration of mailboxes π¬ POP3S
Supports:
POP3S connection over TLS Authentication CAPA enumeration Maildrop STAT Message LIST Message header retrieval using TOP Complete message retrieval using RETR Message deletion using DELE π TLS / OpenSSL
MailEnum also integrates OpenSSL functionality:
TLS connection testing TLS protocol detection Cipher enumeration Server certificate inspection Certificate subject Certificate issuer Certificate validity dates Subject Alternative Names SHA-256 certificate fingerprint openssl s_client integration Workflow
The tool follows an enumeration-first workflow.
βββββββββββββββββ
β Start MailEnum β
βββββββββ¬ββββββββ
β
βΌ
βββββββββββββββββββββ
β Enter Target Host β
βββββββββββ¬ββββββββββ
β
βΌ
ββββββββββββββββββββββ
β Select IMAPS/POP3S β
ββββββββββββ¬ββββββββββ
β
βΌ
ββββββββββββββββββββββ
β Username / Passwordβ
ββββββββββββ¬ββββββββββ
β
βΌ
ββββββββββββββββββββ
β TLS Enumeration β
ββββββββββ¬ββββββββββ
β
βΌ
ββββββββββββββββββββββ
β Automatic Service β
β Enumeration β
ββββββββββββ¬ββββββββββ
β
ββββββββββββ΄βββββββββββ
β β
βΌ βΌ
IMAPS POP3S
β β
βΌ βΌ
List Mailboxes List Messages
β β
βΌ βΌ
Select Mailbox Select Message
β β
βΌ βΌ
Message Operations Message Operations
Requirements Operating System
Linux is recommended.
Tested primarily in security-lab environments such as:
Ubuntu Kali Linux Debian-based distributions Python
Python 3.8+ is recommended.
No third-party Python packages are required if the tool uses the standard-library implementation.