smtp-dump

Crates.iosmtp-dump
lib.rssmtp-dump
version0.1.0
sourcesrc
created_at2021-10-27 19:19:54.215434
updated_at2021-10-27 19:19:54.215434
descriptionReceive-only SMTP server which saves every email that is sent to it
homepage
repositoryhttps://github.com/platy/smtp-dump
max_upload_size
id473211
size40,554
Mike Bush (platy)

documentation

README

SMTP-dump

Listens for SMTP connections, accepts them, and writes any emails that come through them into an inbox on the filesystem.

There are 3 uses that I know of for this:

  • You are writing a small application that needs to receive some emails and it is inconvienient to run an SMTP server and much easier to just read emails from the filesystem
  • You are doing spam research
  • You want to see if your machine has a public IP without a firewall, because within 24 hours someone will send spam via you

Install:

cargo install smtp-dump

Run as daemon:

date >> logs; bash -c 'setsid smtp-dump </dev/null &>>logs & jobs -p %1'

Check daemon:

lsof logs
lsof -i tcp:25

Stop daemon:

killall smtp-dump

Restart:

killall smtp-dump; date >> logs; bash -c 'setsid smtp-dump </dev/null &>>logs & jobs -p %1'
Commit count: 38

cargo fmt