38 lines
1014 B
Markdown
38 lines
1014 B
Markdown
---
|
|
title: Mail
|
|
description: Overview of mail settings, and sending system mail.
|
|
published: true
|
|
date: 2022-10-12T16:28:10.053Z
|
|
tags: config, mail
|
|
editor: markdown
|
|
dateCreated: 2021-08-27T14:00:37.062Z
|
|
---
|
|
|
|
# Mail
|
|
A bunch of stuff still use mail unfortunately.
|
|
|
|
Below are the deets on how to point Containers to the SMTP mailbox I set up, and how to send system mail.
|
|
|
|
## Container mail via SMTP
|
|
|
|
Use the following credentials:
|
|
```yml
|
|
host: mail.zoho.com
|
|
port: 587
|
|
username: "matan@pukeko.xyz"
|
|
password: "DjazsDaEzrU9"
|
|
sender: matan@pukeko.xyz
|
|
```
|
|
Port `465` with SSL should work, though untested.
|
|
|
|
## System mail via `sendmail`
|
|
To send email, you need two things:
|
|
- A local mail daemon (we use `postfix`).
|
|
- A mail command (we use `mailx`)
|
|
|
|
To send an acceptable (not pretty - acceptable) mail run:
|
|
`echo "[message body]" | mail -s "[subject]" -f "[from address]" [to address]`
|
|
Example: Tacocat!
|
|
|
|
`echo "tacocat" | mail --subject="Takahe's got something important to say" matanhorovitz@protonmail.com`
|
|
{.is-info} |