Code Monkey home page Code Monkey logo

pop3-server's Introduction

pop3 (s3-pop3-server) - pop3 server with s3 backend

Overview

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 GoDoc.

Installation

$ 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.

Usage of the binary (s3-pop3-server)

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")

Usage of the library (pop3)

API documentation for pop3 can be found in GoDoc.

import "github.com/dzeromsk/pop3"
...
err := pop3.ListenAndServeTLS(*address, *cert, *key, &s3auth{
  bucket: *bucket,
  region: *region,
})
if err != nil {
  log.Fatalln(err)
}

Features

  • Simple.
  • No config files.
  • Minimal pop3 server feature set.

Downsides

  • All of the files are served from s3.
  • Does not support all pop3 commands.

Philosophy

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.

pop3-server's People

Contributors

dzeromsk avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.