repositories

daemon-sec-cheatsheet

The cheatsheet vault for operators: AD, enumeration, exploitation, priv-esc, web, DFIR

clonegit clone https://git.daemon-sec.xyz/daemon-sec-cheatsheet.git
smtp-commands.mdMarkdown48 lines3.5 KiBsource raw download

title: "SMTP Commands" section: "Network Services" sectionSlug: "network-services-pentesting" sourcePath: "src/network-services-pentesting/pentesting-smtp/smtp-commands.md" sourceUrl: "https://github.com/HackTricks-wiki/hacktricks/blob/188de82beb54e70956b2952367a0af91d26758b8/src/network-services-pentesting/pentesting-smtp/smtp-commands.md" sha: "188de82beb54e70956b2952367a0af91d26758b8" isIndex: false modified: true license: "CC-BY-NC-4.0"#

SMTP Commands#

SMTP is a text protocol. After the server greeting, a client normally sends EHLO; the server's multiline response advertises supported extensions. A basic mail transaction then uses MAIL FROM, one or more RCPT TO commands, and DATA.[1]

Core commands[1]#

Common extensions#

The obsolete TURN command from RFC 821 reversed the client and server roles on an existing connection. RFC 5321 no longer defines it, so do not expect current servers to support it.[1][5]

For a shorter operator-oriented catalog of these commands, the original page used ServerSMTP's command overview.[6]

References#