commit 906d2f1a4048d4a7a00a70ec787b03df01f92933
parent 4251c8f265c1ebff5ce5025c7bc3727b394d7ccb
Author: Jake Bauer <jbauer@paritybit.ca>
Date: Sat, 11 Mar 2023 13:57:47 -0500
*
Diffstat:
4 files changed, 4 insertions(+), 38 deletions(-)
diff --git a/content/garden/index.md b/content/garden/index.md
@@ -202,8 +202,8 @@ Notes, configurations, and other things related to computer system administratio
* [Using Goaccess with OpenBSD's httpd](goaccess-with-openbsd-httpd)
* [OpenBSD NAS](openbsd-nas)
* [OpenBSD Router](openbsd-router)
+ * [OpenBSD Server Setup](openbsd-server-setup)
* [OpenBSD Server Details](openbsd-server-details)
- * [Relaying Service Mail With OpenSMTPD](relaying-service-mail-with-opensmtpd)
* [OpenBSD on the Desktop](openbsd-desktop)
* [MailMan3 on OpenBSD 7.1](https://xn--gckvb8fzb.com/mailman3-on-openbsd-71/)
* Misc:
diff --git a/content/garden/laptops-i-might-like.md b/content/garden/laptops-i-might-like.md
@@ -24,6 +24,7 @@ a laptop today:
|--------------------|--------|--------|--------------|
| (Reference Specs) | 12.1" | 1.08kg | 282x216x26mm |
| MNT Reform | 12.5" | 1.90kg | 290x205x40mm |
+| MNT Pocket Reform | 7.0" | X.XXkg | 200x126x45mm |
| Thinkpad X1 Nano | 13.0" | 0.97kg | 293x208x14mm |
| Thinkpad X13 | 13.3" | 1.19kg | 306x217x18mm |
| Thinkpad X1 Carbon | 14.0" | 1.12kg | 315x222x15mm |
diff --git a/content/garden/openbsd-server-setup.md b/content/garden/openbsd-server-setup.md
@@ -22,6 +22,7 @@ Everything on this page is common to all OpenBSD servers I set up.
```
# pkg_add checkrestart ncdu
+# ln -s /usr/bin/openrsync /usr/bin/rsync
```
## Daily Jobs
@@ -39,10 +40,7 @@ next_part "Disk usage report:"
df -h
```
-## Emails
-
-[Relaying Service Mail With OpenSMTPD](relaying-service-mail-with-opensmtpd.html)
-
+## Relaying Emails
In `/etc/mail/smtpd.conf` (with real credentials of course):
diff --git a/content/garden/relaying-service-mail-with-opensmtpd.md b/content/garden/relaying-service-mail-with-opensmtpd.md
@@ -1,33 +0,0 @@
-Title: Relaying Service Mail With OpenSMTPD
-Summary: Relaying Service Mail With OpenSMTPD
-
-# [%title]
-
-[← Back](./)
-
-
-This configuration is very useful for allowing services to send email, especially when on a residential connection or when port 25 is blocked for a different reason. It also eliminates the need to maintain individual local mail servers and instead route all mail through a domain's central mail server.
-
-This requires an email server which is already set up to accept submissions from remote hosts. I use SMTPS (port 465) but this also works with SMTP+STARTTLS (port 587).
-
-First, create one or more accounts on the central mail server to handle the email (could be servicename@example.com or no-reply@example.com, etc). Creating multiple accounts is convenient in the case that a machine gets compromised and therefore the password used to authenticate with the mailserver gets compromised. In such a case, only one account will need to be changed. If only one account is used for all services, however, when you need to change the password for the service account you will need to update the configuration on all machines. On the other hand, one account for all service emails is easier to manage up front.
-
-On the machine which will be sending email, add an alias for the relevant users to `/etc/mail/aliases`. For example: `root: jbauer@paritybit.ca` which will send all emails that would normally be sent to the root user (for output of cron jobs, etc.) to my personal email.
-
-Modify the `/etc/mail/smtpd.conf` file as follows (this configuration uses the account service@example.com and SMTP AUTH PLAIN to send mail for the machine 'host'):
-
-```/etc/mail/smtpd.conf
-table aliases file:/etc/mail/aliases
-table credentials { service = service:thisisarandomandsecurepassword }
-
-listen on socket
-listen on lo0
-
-action "local_mail" mbox alias <aliases>
-action "outbound" relay host smtps://service@mail.example.com tls auth <credentials> mail-from host@example.com
-
-match from local for local action "local_mail"
-match from local for any action "outbound"
-```
-
-Finally, reload OpenSMTPD so it loads the new configuration.