diff options
| author | alex <alex@pdp7.net> | 2026-01-05 18:52:55 +0100 |
|---|---|---|
| committer | alex <alex@pdp7.net> | 2026-01-05 18:52:55 +0100 |
| commit | 2f9d70af26773c44c80d892d762a9aea858a1ee5 (patch) | |
| tree | 1d9ca1650ecb08e495160ed7c0812dd0afa3250a /infrastructure | |
| parent | 34f292e3c91c2de9e63518940e120c322294778f (diff) | |
Add mail documentation
Diffstat (limited to 'infrastructure')
| -rw-r--r-- | infrastructure/roles/mail/README.md | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/infrastructure/roles/mail/README.md b/infrastructure/roles/mail/README.md new file mode 100644 index 0000000..65d8f39 --- /dev/null +++ b/infrastructure/roles/mail/README.md @@ -0,0 +1,35 @@ +# Mail + +## Sending mail to other local users + +1. Run `mutt` +1. If `mutt` prompt you to create a `Mail` directory, then press `y`. +1. Press `m` +1. Enter the local user name of the recipient (`test`) +1. Enter the subject +1. Write your email, save and quit. + `mutt` opens your `$EDITOR`, by default `vi`. +1. Review the email and press `y` to confirm delivery. + +## Group mails + +This playbook sets up group email addresses based on the `mail_groups` variable in the inventory. +With the following inventory: + +``` +mail_groups: + foo: + - bar + - baz +``` + +, the mail system delivers mails addressed to `foo` to the `bar` and `baz` users. + +The playbook creates a system, to whom the mail system delivers the mails too, creating a group mail archive. + +TODO: expose the mail archives in a friendlier way. +I tried [public-inbox](https://public-inbox.org) but I did not manage to make it work and public-inbox provides little troubleshooting information. + +## System mails + +The `root_alias` variable in the inventory configures delivery of system emails. |
