Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.
/ go-imap-proxy Public archive

A go-imap backend that proxies all commands and responses to another IMAP server

License

Notifications You must be signed in to change notification settings

emersion/go-imap-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-imap-proxy

A go-imap backend that proxies all commands and responses to another IMAP server.

Usage

package main

import (
	"log"

	"github.com/emersion/go-imap/server"
	"github.com/emersion/go-imap-proxy"
)

func main() {
	be := proxy.NewTLS("mail.example.org:993", nil)

	// Create a new server
	s := server.New(be)
	s.Addr = ":1143"
	// Since we will use this server for testing only, we can allow plain text
	// authentication over unencrypted connections
	s.AllowInsecureAuth = true

	log.Println("Starting IMAP server at localhost:1143")
	if err := s.ListenAndServe(); err != nil {
		log.Fatal(err)
	}
}

License

MIT

About

A go-imap backend that proxies all commands and responses to another IMAP server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages