MAILSNARF(8)
π MAILSNARF π
okay bestie, so this one's mailsnarf, and it lives in section 8 of the System Manager's Manual β yes, the big scary admin section, don't be intimidated, she's sweet actually π
β¨ NAME β¨
mailsnarf</purole> β sniff mail messages in Berkeley mbox format π
β¨ SYNOPSIS β¨
mailsnarf [-i interface | -p pcapfile] [[-v] pattern [expression]]
πΈ DESCRIPTION πΈ
okay so picture this: mailsnarf literally outputs e-mail messages sniffed from SMTP and POP traffic in Berkeley mbox format. and why do we care?? because that format is chef's kiss β it's suitable for offline browsing with your favorite mail reader (mail(1), pine(1), etc.) π¦
it's giving "dump it in a file and read it later like a little detective" energy, ngl. main character forensics. π
π OPTIONS π
-iinterface β specify the interface to listen on. that's it, that's the vibe. pick your network card, queen π-ppcapfile β process packets from the specified PCAP capture file instead of the network. so if you already saved the tea earlier, you can sip it now π-vβ "Versus" mode. it inverts the sense of matching, to select non-matching messages. so like, everything EXCEPT the thing. iconic behavior honestly π- pattern β specify regular expression for message header/body matching. regex girlies rise up π
- expression β specify a
tcpdump(8)filter expression to select traffic to sniff. yes, we're borrowing tcpdump's whole filter language, we're fancy like that β¨
π«Ά quick reminder bestie:-iand-pare an either/or situation (that's what the|in the synopsis is telling you), and-vonly does its little flip when it's hanging out with a pattern.
π₯ SEE ALSO π₯
π AUTHOR π
Dug Song <dugsong@monkey.org> π
and that's the whole page, no cap πβ¨ mailsnarf(8), straight outta the System Manager's Manual β go forth and browse your snarfed mail in peace, bestie π§π
π¦ where this page comes from
- arch rolling: dsniff 2.4b1-34 Β· BSD
- debian bookworm: dsniff 2.4b1+debian-31 Β· BSD-3-Clause
- debian trixie: dsniff 2.4b1+debian-34 Β· BSD-3-Clause
- epel 9: dsniff 2.4-0.37.b1.el9 Β· BSD
- fedora 43: dsniff 2.4-0.47.b1.fc43 Β· BSD-3-Clause AND BSD-4-Clause-UC AND ISC AND LicenseRef-Fedora-Public-Domain AND MIT
- fedora 44: dsniff 2.4-0.48.b1.fc44 Β· BSD-3-Clause AND BSD-4-Clause-UC AND ISC AND LicenseRef-Fedora-Public-Domain AND MIT
- nixos 26.05: dsniff 2.4b1
- nixpkgs unstable: dsniff 2.4b1
- ubuntu jammy: dsniff 2.4b1+debian-30build1 Β· BSD-3-Clause
- ubuntu noble: dsniff 2.4b1+debian-32build2 Β· BSD-3-Clause
- ubuntu questing: dsniff 2.4b1+debian-35
- ubuntu resolute: dsniff 2.5a2-1 Β· BSD-3-Clause
- ubuntu stonking: dsniff 2.5a2-1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms