From caedd7c4d010b0ec1af94f874b837034bf35ebd8 Mon Sep 17 00:00:00 2001 From: arf20 Date: Sat, 30 Dec 2023 01:02:17 +0100 Subject: Add script --- README.md | 1 + postfix/update_aliases.sh | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 postfix/update_aliases.sh diff --git a/README.md b/README.md index 75b4d3a..adb4860 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ postfix |- aliases address aliases |- protected_destinations destionations only reachable by insiders |- insiders insider addresses +|- update_aliases.sh script to compile aliases, insiders and protected_destinations, load them and reload postfix dovecot |- dovecot.conf dovecot config gnu-mailutils diff --git a/postfix/update_aliases.sh b/postfix/update_aliases.sh new file mode 100755 index 0000000..35b9ace --- /dev/null +++ b/postfix/update_aliases.sh @@ -0,0 +1,7 @@ +#!/bin/sh +postmap /etc/postfix/insiders +postmap /etc/postfix/protected_destinations +postalias /etc/aliases +newaliases +postfix reload + -- cgit v1.2.3