From 25be7c21b4650fb5e437f1a5cc28489f17f921e7 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 18 Dec 2020 11:37:08 +0100 Subject: [PATCH] Add support for the Visible prop on minilists --- .../service/qpsmtpd/config/badrcptto_ext/20InternalMinilist | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 root/etc/e-smith/templates/var/service/qpsmtpd/config/badrcptto_ext/20InternalMinilist diff --git a/root/etc/e-smith/templates/var/service/qpsmtpd/config/badrcptto_ext/20InternalMinilist b/root/etc/e-smith/templates/var/service/qpsmtpd/config/badrcptto_ext/20InternalMinilist new file mode 100644 index 0000000..5dc6683 --- /dev/null +++ b/root/etc/e-smith/templates/var/service/qpsmtpd/config/badrcptto_ext/20InternalMinilist @@ -0,0 +1,10 @@ +{ + $OUT .= ''; + foreach my $list ( $a->get_all_by_prop( type => 'list' ){ + next unless ( $list->prop('Visible') || '') =~ m/^(internal|none)$/i; + + foreach my $domain ( $d->domains ){ + $OUT .= $list->key . '@' . $domain->key . "\n"; + } + } +}