smtp

package
v0.0.0-...-03c895a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package smtp provides a go-smtp-server backend that encrypts messages with PGP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	server.Backend
	// contains filtered or unexported fields
}

func New

func New(be server.Backend, kr KeyRing) *Backend

func (*Backend) Login

func (be *Backend) Login(username, password string) (server.User, error)

type KeyRing

type KeyRing interface {
	pubkey.Source
	Unlock(username, password string) (openpgp.EntityList, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL