Files
wiki/Mail.md
2022-10-05 14:13:04 +03:00

41 lines
1.2 KiB
Markdown

---
title: Mail
description: Overview of mail settings, and sending system mail.
published: true
date: 2022-10-05T11:13:02.325Z
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`
Gentoo mailing is... weird. Postfix works as is (see [here](https://wiki.gentoo.org/wiki/Postfix)), but `mailx` appears not to, sticking us with `sendmail`.
To send an acceptable (not pretty - acceptable) mail run:
`echo "Subject: [subject]" | sendmail -F "Takahe" -f "takahe@pukeko.xyz" -t matanhorovitz@protonmail.com <<< $([message-body])`
> Example: Tacocat!
`echo "Subject: tacocat" | sendmail -F "Takahe" -f "takahe@pukeko.xyz" -t matanhorovitz@protonmail.com <<< $(echo tacocat)`
{.is-info}
So long as it works, right?
## Nextcloud mail
Nextcloud requires STARTTLS on port 25 - see this example:
![nextcloud_mail.png](/nextcloud_mail.png)