From 964cb5503eb4e382a7519416f9d71da80ca84518 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Fri, 9 Aug 2024 17:26:49 +0200 Subject: [PATCH 1/3] describe installing Postfix as Mailrelay --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 41f4f12..9c5e71a 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ enable EPEL Repo: # firewall-cmd --add-service={http,https} --permanent # firewall-cmd --remove-service=cockpit --permanent # firewall-cmd --add-port=1883/tcp --permanent ; only for MQTT +# firewall-cmd --add-port=25/tcp --permanent ; for Postfix # firewall-cmd --reload List Rules: @@ -303,7 +304,33 @@ containers$ systemctl --user start podman-kube@$escaped.service containers$ systemctl --user enable podman-kube@$escaped.service ``` +## Postfix +```bash +# dnf install postfix + +/etc/postfix/main.cf: +--- +inet_interfaces = all + +virtual_alias_domains = wo-bisch.ch mini-beieli.ch +virtual_alias_maps = hash:/etc/postfix/virtual +--- + +# tail -2 /etc/postfix/virtual +info@mini-beieli.ch info@nbit.ch +info@wo-bisch.ch info@nbit.ch + +# postmap /etc/postfix/virtual + +# systemctl enable postfix +# systemctl start postfix + +Creat DNS Records: +mx1.nbit.ch and mx2.nbit.ch (A/AAAA Records to the same IPs as onyx and onyx-dev) + +Change SPF Records to include mx1 and mx2 +``` ## Secondary Nameserver From cd1e469f57086ac76909f15787d25077d925f1d3 Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Fri, 9 Aug 2024 18:09:56 +0200 Subject: [PATCH 2/3] update README --- README.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9c5e71a..e9bc3a2 100644 --- a/README.md +++ b/README.md @@ -313,13 +313,19 @@ containers$ systemctl --user enable podman-kube@$escaped.service --- inet_interfaces = all +smtpd_tls_security_level = none + virtual_alias_domains = wo-bisch.ch mini-beieli.ch virtual_alias_maps = hash:/etc/postfix/virtual --- -# tail -2 /etc/postfix/virtual -info@mini-beieli.ch info@nbit.ch -info@wo-bisch.ch info@nbit.ch +# tail -6 /etc/postfix/virtual +info@mini-beieli.ch nbitinf@nbit.ch +mail@mini-beieli.ch nbitinf@nbit.ch +register@mini-beieli.ch nbitinf@nbit.ch +info@wo-bisch.ch nbitinf@nbit.ch +mail@wo-bisch.ch nbitinf@nbit.ch +register@wo-bisch.ch nbitinf@nbit.ch # postmap /etc/postfix/virtual From e4be94fd43f6d812ac1775010ff75110899dc2bb Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Sat, 10 Aug 2024 14:09:54 +0200 Subject: [PATCH 3/3] fix README --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e9bc3a2..c4a6026 100644 --- a/README.md +++ b/README.md @@ -319,12 +319,18 @@ virtual_alias_domains = wo-bisch.ch mini-beieli.ch virtual_alias_maps = hash:/etc/postfix/virtual --- -# tail -6 /etc/postfix/virtual +# tail -12 /etc/postfix/virtual +abuse@mini-beieli.ch nbitinf@nbit.ch +hostmaster@mini-beieli.ch nbitinf@nbit.ch info@mini-beieli.ch nbitinf@nbit.ch mail@mini-beieli.ch nbitinf@nbit.ch +postmaster@mini-beieli.ch nbitinf@nbit.ch register@mini-beieli.ch nbitinf@nbit.ch +abuse@wo-bisch.ch nbitinf@nbit.ch +hostmaster@wo-bisch.ch nbitinf@nbit.ch info@wo-bisch.ch nbitinf@nbit.ch mail@wo-bisch.ch nbitinf@nbit.ch +postmaster@wo-bisch.ch nbitinf@nbit.ch register@wo-bisch.ch nbitinf@nbit.ch # postmap /etc/postfix/virtual