-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4b3972f
commit 6b6a52e
Showing
2 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,46 @@ | ||
# go-mta | ||
A simple Mail transfert Agent | ||
|
||
[![GoDoc](https://godoc.org/github.com/HuguesGuilleus/go-mta/pkg?status.svg)](https://godoc.org/github.com/HuguesGuilleus/go-mta/pkg) | ||
|
||
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](https://github.com/HuguesGuilleus/go-mta/releases/latest "Github Release") | ||
|
||
### Configuration file | ||
|
||
The configuration file is in `/etc/go-mta/config.ini` or it's the argument when you run the program. | ||
|
||
```ini | ||
; The file who contains login | ||
login = /etc/#.txt | ||
; The listen address | ||
addrs = localhost:25 :446 | ||
; 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: | ||
|
||
```bash | ||
openssl genrsa -out key.pem | ||
openssl rsa -in key.pem -pubout -out pub.key | ||
``` | ||
|
||
## TODO | ||
|
||
- [ ] StartTLS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters