From 42c5221f862dd8e2e3049c8a2f94d39bf35d754f Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 21 Dec 2023 14:47:07 +0100 Subject: [services/mail/server] add convenience scripts --- Applications/Services/mail/server/bin/check-sieve | 5 +++++ Applications/Services/mail/server/bin/mail | 3 +++ 2 files changed, 8 insertions(+) create mode 100755 Applications/Services/mail/server/bin/check-sieve create mode 100755 Applications/Services/mail/server/bin/mail (limited to 'Applications') diff --git a/Applications/Services/mail/server/bin/check-sieve b/Applications/Services/mail/server/bin/check-sieve new file mode 100755 index 0000000..9f18b8c --- /dev/null +++ b/Applications/Services/mail/server/bin/check-sieve @@ -0,0 +1,5 @@ +#!/bin/bash + +for file in $(docker compose exec mailserver bash -c "ls /tmp/docker-mailserver/*.dovecot.sieve"); do + docker compose exec mailserver sievec "${file}" +done diff --git a/Applications/Services/mail/server/bin/mail b/Applications/Services/mail/server/bin/mail new file mode 100755 index 0000000..8a7b0cf --- /dev/null +++ b/Applications/Services/mail/server/bin/mail @@ -0,0 +1,3 @@ +#!/bin/sh + +docker compose exec mailserver setup $@ -- cgit v1.2.3