go-mta

command module
v0.0.0-...-6ddcf40 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

README

go-mta

GoDoc

A simple Mail transfert Agent. You can use as a package or as a deamon.

Deamon

You can build yourself or use the Compiled binary

Configuration file

The configuration file is in /etc/go-mta/config.ini or it's the argument when you run the program.

; The file who contains login
login = /etc/login.txt
; The listen address
addrs = localhost:25 localhost:465
addrs = :25 :465
; Log output directory, by default /var/etc/go-mta/
out = log/

; Every host has a section.
[host1]
dkim_key = /path/to/dkim/private/key.pem
dkim_selector = DKIM slector
crt = /path/to/tls/certificate.pem
key = /path/to/tls/private/key.pem
Login file

Each line contain a login, separation blank(s) and a password. The login and the password can't contain blank or #. You can add some comments with # and blank lines.

DKIM key generation

You must generate DKIM key you can do this:

openssl genrsa -out key.pem
openssl rsa -in key.pem -pubout -out pub.key

TODO

  • StartTLS

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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