diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-05-14 22:00:36 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:53:27 +0200 |
commit | 166804e99e33c8ec5760e88ba1f52d4fc301334c (patch) | |
tree | 706ca108db27e2e6f1c696bdd3f72e6d1f2ce5fa /roles/lists/files/usr/local/bin/sympa-queue | |
parent | 334b7604727810c02ecb8942f3753dee15466691 (diff) |
Configure the list manager (Sympa).
Diffstat (limited to 'roles/lists/files/usr/local/bin/sympa-queue')
-rwxr-xr-x | roles/lists/files/usr/local/bin/sympa-queue | 17 |
1 files changed, 17 insertions, 0 deletions
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 |