Send-only smtp server
Find a file
2024-10-05 00:20:17 +00:00
cmd/server Actual AUTH and also enforce EHLO/HELO first 2024-10-04 21:44:10 +00:00
smtp Whitespace 2024-10-05 00:20:17 +00:00
.gitignore New and improved password hashing script 2024-10-04 21:14:27 +00:00
diodemail-hash New and improved password hashing script 2024-10-04 21:14:27 +00:00
Dockerfile Dockerfile 2024-10-02 19:15:07 +00:00
go.mod Initial server setup and performs initial greeting and hello 2024-09-28 21:05:58 +00:00
go.sum Initial server setup and performs initial greeting and hello 2024-09-28 21:05:58 +00:00
LICENSE Initial commit 2024-09-28 05:23:40 +00:00
README.md Document configuration 2024-10-05 00:12:36 +00:00

diodemail

Send-only smtp server

Configuration

Configuration is done through a json file. By default it will read from /etc/diodemail/config.json, but this can be overridden by passing the --config-file program argument. The only other program argument is the --log-level which can be one of the below options.

{
	"LogLevel": "the minimum level to log", // one of trace, debug, info, warn, error, fatal, or panic (default: info)
	"Host":     "your.domain.here", // the hostname to send mail from (the part after the @ in outgoing email)
	"Ports": {
		"Plain": "##" or "disabled", // the port number to listen on or disabled to not listen with plain text
		"TLS": "##" or "disabled" // the port nmuber to listen on or disabled to not listen with TLS
	},
	"Certificate": {
		"CertFile": "path/to/the/cert/file",
		"KeyFile": "path/to/the/private/key/file"
	},
	"Auth": {
		"Enabled": true or false, // Default true
		"PasswordHash": "" // sha256 hash of \0username\0password
	}
}

diodemail-hash

The included diodemail-hash shell script is useful for generating the PasswordHash