nextcloud: Run an SMTP relay locally

For some reason, Nextcloud seems to have trouble sending mail via the
network-wide relay.  It opens a connection, then just sits there and
never sends anything until it times out.  This happens probably 4 out of
5 times it attempts to send e-mail messages.

Running Postfix locally and directing Nextcloud to send mail through it
and then on to the network-wide relay seems to work much more reliably.
master
Dustin 2025-08-23 22:43:45 -05:00
parent 1a3f68e18b
commit 57a5f83262
2 changed files with 9 additions and 1 deletions

View File

@ -10,7 +10,7 @@ nextcloud_trusted_domains:
- '{{ ansible_fqdn }}'
nextcloud_smtp:
from: nextcloud@pyrocufflink.net
host: mail.pyrocufflink.blue
host: 127.0.0.1
port: 25
dnf_automatic_exclude: nextcloud
@ -52,3 +52,8 @@ promtail_scrape_configs:
- timestamp:
source: timestamp
format: '2006-01-02T15:04:05-0700'
smtp:
mode: relay
host: mail.pyrocufflink.blue
port: 25

3
hosts
View File

@ -235,6 +235,9 @@ chromie.pyrocufflink.blue
[smtp-relay]
smtp1.pyrocufflink.blue
[smtp-relay:children]
nextcloud
[squid]
[sudo]