8000 GitHub - bigkevmcd/john: Go Mailet implementation based on go-smtpd
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bigkevmcd/john

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

John - mailets for Go

This is a simple SMTP Server that can have a chain of mail processors inserted, this is not a production tool, and was written for teaching purposes.

Running John

$ go build ./cmd/john
$ ./john smtp --init-maildir

Mail will be delivered to ./tmp in Maildir format.

Can't use SMTP?

It might be simpler to use HTTP to send emails.

$ ./john http --init-maildir

This defaults to serving on :8080

You can send emails via curl

#!/bin/sh
curl -d "Testing" \
  -H "John-Envelope-From: testing@example.com" \
  -H "John-Envelope-To: test@example.com" \
  -H "John-Mail-From: testing@example.com" \
  -H "John-Mail-To: test@example.com" \
  -H "John-Mail-Test-Header: this is a test" \
  http://localhost:8080/

Again mail will be delivered to ./tmp in Maildir format.

Testing mail delivery

$ echo "This is the message body and contains the message" | mailx -v -r \
  "someone@example.com" -s "This is the subject" -S smtp="localhost:2525" \
  testing@example.com

Running the tests

$ go test ./...

About

Go Mailet implementation based on go-smtpd

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0