sodew-bash
This commit is contained in:
@@ -0,0 +1,121 @@
|
||||
[KUBE](../../README.md) / [k3s](../k3s.md) / Postfix
|
||||
|
||||
# Resource Postfix
|
||||
|
||||
- [Install](#install)
|
||||
- [Remove](#remove)
|
||||
- [Status](#status)
|
||||
- [Add domain](#add-domain-)
|
||||
- [Get DKIM key](#get-dkim-key-for-dns-record-domain-or-dkim-record-lists)
|
||||
- [Check DNS records](#check-dns-records-for--or-mta)
|
||||
- [Get template of DNS records](#get-template-of-dns-records)
|
||||
***
|
||||
|
||||
## Install
|
||||
|
||||
Command:
|
||||
```bash
|
||||
sudo kube.sh --postfix install
|
||||
```
|
||||
|
||||
Example of log:
|
||||
```bash
|
||||
🔹[Postfix] Install
|
||||
🔹[Postfix] Preparing /app/kube/assets/yaml/postfix.yaml
|
||||
🔹[K3S] Applying YAML /app/kube/data/yaml/postfix.yaml
|
||||
💡[K3S] Waiting for pods to be ready... | 1 not ready
|
||||
💡[K3S] Waiting for pods to be ready... | 1 not ready
|
||||
💡[K3S] Waiting for pods to be ready... | 1 not ready
|
||||
💡[K3S] Waiting for pods to be ready... | 1 not ready
|
||||
✅[Postfix] Applied /app/kube/data/yaml/postfix.yaml
|
||||
```
|
||||
***
|
||||
|
||||
## Remove
|
||||
|
||||
Command:
|
||||
```bash
|
||||
sudo kube.sh --postfix remove
|
||||
```
|
||||
***
|
||||
|
||||
## Status
|
||||
|
||||
> [!NOTE]
|
||||
> In progress...
|
||||
|
||||
Command:
|
||||
```bash
|
||||
sudo kube.sh --postfix status
|
||||
```
|
||||
|
||||
Example of log:
|
||||
```bash
|
||||
???
|
||||
```
|
||||
***
|
||||
|
||||
## Add domain <domain>
|
||||
|
||||
> [!NOTE]
|
||||
> In progress...
|
||||
|
||||
Command:
|
||||
```bash
|
||||
sudo kube.sh --postfix add <domain>
|
||||
```
|
||||
***
|
||||
|
||||
## Get DKIM key for DNS record domain or DKIM record lists
|
||||
|
||||
Command:
|
||||
```bash
|
||||
sudo ube.sh --postfix dkim [domain]
|
||||
```
|
||||
|
||||
Example of log:
|
||||
```bash
|
||||
[Postfix] DKIM key for DNS
|
||||
selector1._domainkey IN TXT ( "v=DKIM1; h=sha256; k=rsa; s=email; "
|
||||
"p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6rCyqEvQ1...FQIDAQAB" ) ; ----- DKIM key selector1 for krumax.cz
|
||||
```
|
||||
***
|
||||
|
||||
## Check DNS records for <domain> or MTA
|
||||
|
||||
Command:
|
||||
```bash
|
||||
sudo kube.sh --postfix dns [domain]
|
||||
```
|
||||
|
||||
Example of log:
|
||||
```bash
|
||||
🔹[Postfix] Check DNS records
|
||||
✅[Postfix] A record: mta.krumax.cz | 31.31.73.67
|
||||
✅[Postfix] SPF record: mta.krumax.cz | "v=spf1 a -all"
|
||||
✅[Postfix] PTR record: mta.krumax.cz | mta.krumax.cz.
|
||||
```
|
||||
***
|
||||
|
||||
## Get template of DNS records
|
||||
|
||||
Command:
|
||||
```
|
||||
sudo kube.sh --postfix template
|
||||
```
|
||||
|
||||
Example of log:
|
||||
```bash
|
||||
🔹[Postfix] Template
|
||||
🔹[Postfix] For MTA ==============
|
||||
🔹[Postfix] IN A 31.31.73.67
|
||||
🔹[Postfix] IN TXT v=spf1 a -all
|
||||
🔹[Postfix] PTR -> mta.krumax.cz
|
||||
|
||||
🔹[Postfix] For site =============
|
||||
🔹[Postfix] IN A 31.31.73.67
|
||||
🔹[Postfix] IN MX 10 mta.krumax.cz.
|
||||
🔹[Postfix] IN TXT v=spf1 mx ~all
|
||||
🔹[Postfix] IN TXT v=DKIM1; ...
|
||||
🔹[Postfix] IN TXT v=DMARC1; ...
|
||||
```
|
||||
Reference in New Issue
Block a user