-
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
fca6b0b
commit 8ec3138
Showing
4 changed files
with
151 additions
and
1 deletion.
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
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
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 +1,26 @@ | ||
# Configure via all-in-one YAML file | ||
|
||
## Configuration files | ||
|
||
| Path | Description | | ||
| --------------------------------- | ----------------------------- | | ||
| `./all-in-one.yaml` | All config in one file | | ||
|
||
## Docker | ||
|
||
```shell | ||
docker run -d --restart unless-stopped \ | ||
--name smarthost \ | ||
-p 8587:587 -p 8586:586 \ | ||
-v ./all-in-one.yaml:/etc/smarthost/yaml.d/all-in-one.yaml \ | ||
insios/smarthost | ||
``` | ||
|
||
## Helm | ||
|
||
```shell | ||
helm upgrade --install --atomic --cleanup-on-fail \ | ||
--namespace smarthost --create-namespace \ | ||
--set-file config.yaml.data.all-in-one_yaml=./all-in-one.yaml \ | ||
smarthost oci://ghcr.io/insios/helm/smarthost | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,121 @@ | ||
config: | ||
verbose: false | ||
hostname: 'relay.mydomain.com' | ||
allowed_networks: | ||
- '0.0.0.0/0' | ||
auth: true | ||
sender_restrictions: 'email' # domain | email | ||
tls: | ||
level: 'may' # may | encrypt | ||
crt: | | ||
-----BEGIN CERTIF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JlAY4gcH3FMwDwYD | ||
VR0TAQH/BAUwAwEB/zAxBgNVHREEKjAogglsb2NhbGhvc3SCFWxvY2FsaG9zdC5s | ||
b2NhbGRvbWFpbocEfwAAATANBgkqhkiG9w0BAQsFAAOCAgEALxVP9Rpd+p+4hSTJ | ||
6UHBVDCtQ7S8dksP/C3tZHeHwenlSwYl+rOrZfBF8/QIHbF6FpSShie5t+ClE/De | ||
EjNIf0tmyhVlWh+IRc2tZ5RKWYQx5SMintxhXlLAq0WeY8qY5kq5+mwF3IlQVR3L | ||
kR8+gwjljrScx1XHZahE/+qsU8F/vvnszd5emcF9I/N3gveLZDtarTcwBiRYTL9a | ||
OOqeNbDExNAGYkCX1JpQp/ylF6c4frDwjpBlM78Tg+g9pPc0HVgS/Jfd4CNV+Ink | ||
/9p/GXfTJSBE5qro6cDqe2XQn2VZHoosnzyNxNSu7FPqJbvTxNC4XOa1WRfSb37s | ||
TNHXgXwvwO01+GNa9m2Bj3cy1UH4OpT0nv5+2RBCjhKtiVLJ7FjxFbkqeAP4FyCf | ||
pbzb7cXszp7i7SN65ZLJnWFSP8xsHAMuOGJhGWgmycjsFl1/MKCMGK7+tPgaXTQU | ||
23CbZQZE+RbM9147geX3Y/0x7/QtN3z+saTVDSCpO057iETqwM39Bl4CItwCM2Z4 | ||
DYwB4S++1zcLGmRr0pV2vBqYKktng9Eb2ge0fyDgYj+KyXIOia5oKI5m3d4Xay1c | ||
7eG1bFbP5bweFQuIKH9LTqZmDI7lQQoz3MIe52dapCPKX55TajxSk8EhM9hbyrjL | ||
v6rPUtK48F1y8DMOSwRT/0onaXs= | ||
-----END CERTIFICATE----- | ||
key: | | ||
-----BEGIN PRIVATE KEY----- | ||
MIIJQQIBADANBgkqhkiG9w0BAQEFAASCCSswggknAgEAAoICAQDIShkusklSYX+D | ||
6ZTRTSjoegciv+WmacdNKC1F8lFQkQZT5mBdosD5Vgu2AOpf088GSVMCWbm1hQeO | ||
6XOA9Y42H1CSnHWw2Qf8h0kHW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EY----- | ||
users: | ||
- name: 'user1' | ||
password: 'password1' | ||
allowed_from: | ||
- '@mydomain.com' | ||
|
||
domains: | ||
- name: 'mydomain.com' | ||
dkim: | ||
selector: 'myrelay' | ||
key: | | ||
-----BEGIN RSA PRIVATE KEY----- | ||
MIICXQIBAAKBgQCn8bRlLepOHmIjN+gvFxgrfsvG8Im2+JDfmO6qkc0EVWyMFO2V | ||
YOO1HDfPSojmhLI/Pgh3SNwxe7XQWQ53ektR8f4s53r34H3T093AS+OgaEqWv6ny | ||
GAM1PCTBzCQf1L93XGG00pFc3YXpPpwi9DafZ6JgBc58Oqg5qhSzgnhTKwIDAQAB | ||
AoGAO/Gp0fNxjjCKFsf9t9Emb1/ynC9++DAAhc6wYXFpHALhm55crtTGcf6AbRzN | ||
gHocpTYfD3SSI5dkbdlbsImWGDV/v9RdoaSZZexksOszc/H3a1oo3dImENLLpiaX | ||
gktEXKMvIb+T6QAD6ksM2EKpGmraWdLud2pS9Og9/4JjbAECQQDYdrlK+BWfNEOJ | ||
Ged7lq2o/aYnHqzrdQEpFic5BErQKuEUmuZGd3wmeTJtVUpl0W27oByxCZNuZA1e | ||
tlXx6Ne7AkEAxp5U7GLGNtXhee0zV8g61InnpfsSzI6FZnHKAMOhgeGLsQ8+zVo4 | ||
v6nX7FbrTDELoaAnhQG7WaK8oamTJFCjUQJAQePZwT1E76IsEJanBNK35+HV6sCG | ||
qGGESeppZAyvbTAwNWJ1R+vlCZ0IwYkdzWJzgZJaSXV9wDOKclMUVD+pMwJBAK6j | ||
33Yub60dqPGFcMS5yYjCbU4TkvcMRh3K5dyAJ43FXQflqMn1j7pvQ+2Ki8Bly51k | ||
7frUiACLyCK5sSiYQtECQQC5tL5qGd8byYRs+PFFEQ5ZQ+LOFX+m42PSEPOtKjj8 | ||
TjwizuhWFUO+NkoLPFwYKkATyK03hJBHQYq6cJzUD23T | ||
-----END RSA PRIVATE KEY----- |