s3-pop3-server
is a service that takes S3 bucket and presents it as pop3 maildrop. pop3
is a golang library to build pop3 servers. Both are written in pure go. API documentation for pop3
can be found in .
$ go get -u github.com/dzeromsk/pop3/...
This will make the s3-pop3-server
tool available in ${GOPATH}/bin
, which by default means ~/go/bin
.
s3-pop3-server
starts pop3 server on port 995 with s3 bucket used as a storage.
Usage of s3-pop3-server:
-addr string
Address to listen to (default ":995")
-bucket string
AWS S3 bucket name (default "emails")
-cert string
TLS Certificate used by server (default "cert.pem")
-key string
TLS Private key used by server (default "key.pem")
-region string
AWS S3 bucket region (default "eu-west-1")
API documentation for pop3
can be found in .
import "github.com/dzeromsk/pop3"
...
err := pop3.ListenAndServeTLS(*address, *cert, *key, &s3auth{
bucket: *bucket,
region: *region,
})
if err != nil {
log.Fatalln(err)
}
- Simple.
- No config files.
- Minimal pop3 server feature set.
- All of the files are served from s3.
- Does not support all pop3 commands.
Sometimes you just want S3 bucket to be accessible via pop3 protocol. For example when receiving Email with Amazon SES and storing them in S3. There are ways to make it work with existing pop3 servers. But you don't need all that. You want something similar to proxy.