From 166804e99e33c8ec5760e88ba1f52d4fc301334c Mon Sep 17 00:00:00 2001 From: Guilhem Moulin Date: Thu, 14 May 2015 22:00:36 +0200 Subject: Configure the list manager (Sympa). --- roles/lists/files/usr/local/bin/sympa-queue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 roles/lists/files/usr/local/bin/sympa-queue (limited to 'roles/lists/files/usr/local/bin/sympa-queue') diff --git a/roles/lists/files/usr/local/bin/sympa-queue b/roles/lists/files/usr/local/bin/sympa-queue new file mode 100755 index 0000000..85001bb --- /dev/null +++ b/roles/lists/files/usr/local/bin/sympa-queue @@ -0,0 +1,17 @@ +#!/bin/sh + +PATH=/bin:/usr/bin +set -ue + +[ $# -eq 1 ] || exit 1 + +username="${1#*/}" +domainname="${1%%/*}" + +if [ "$username" = 'abuse-feedback-report' ] || [ "$username" = bounce ]; then + exec /usr/lib/sympa/lib/sympa/bouncequeue "sympa@$domainname" +elif [ "${username%-owner}" != "$username" ]; then + exec /usr/lib/sympa/lib/sympa/bouncequeue "${username%-owner}@$domainname" +else + exec /usr/lib/sympa/lib/sympa/queue "$username@$domainname" +fi -- cgit v1.2.3