From 3641fa431760584f3c968b280f7b2a3bb85c3a4f Mon Sep 17 00:00:00 2001 From: furstblumier <7149167+furstblumier@users.noreply.github.com> Date: Tue, 9 Apr 2024 14:11:07 +0200 Subject: [PATCH] add example to mkdocs --- .../use-cases/external-relay-only-mailserver.md | 15 ++++++++------- docs/mkdocs.yml | 1 + 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/docs/content/examples/use-cases/external-relay-only-mailserver.md b/docs/content/examples/use-cases/external-relay-only-mailserver.md index f1223b83..9b8fd615 100644 --- a/docs/content/examples/use-cases/external-relay-only-mailserver.md +++ b/docs/content/examples/use-cases/external-relay-only-mailserver.md @@ -16,14 +16,15 @@ The following guide assumes you have a public server with a static IP on a hosti We will briefly go through the DNS part of the setup. It's similar to the general recommended setup for all mailservers. Let's assume our public server has a public reachable IP address of `123.123.123.123` and the hostname `mail.example.com`. Set your A, MX and PTR records like you would for DMS. - ```txt - $ORIGIN example.com - @ IN A 123.123.123.123 - mail IN A 123.123.123.123 +```txt +$ORIGIN example.com +@ IN A 123.123.123.123 +mail IN A 123.123.123.123 + +; mail server for example.com +@ IN MX 10 mail.example.com. +``` - ; mail server for example.com - @ IN MX 10 mail.example.com. - ``` And the associated PTR record. SPF records should also be setup as you normally would for `mail.example.com`. ## Public host postfix setup diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index 9d7fc81d..02875caa 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -180,6 +180,7 @@ nav: - 'iOS Mail Push Support': examples/use-cases/ios-mail-push-support.md - 'Lua Authentication': examples/use-cases/auth-lua.md - 'Bind outbound SMTP to a specific network': examples/use-cases/bind-smtp-network-interface.md + - 'Use an external mailserver as inbound and outbound relay': examples/use-cases/external-relay-only-mailserver.md - 'FAQ' : faq.md - 'Contributing': - 'General Information': contributing/general.md