mirror of
https://github.com/tomav/docker-mailserver.git
synced 2024-07-01 05:31:36 +02:00
a144f3811c
* adapted setup.sh to handle email aliases * added needed scripts for alias management * added integration tests
14 lines
268 B
Bash
Executable File
14 lines
268 B
Bash
Executable File
#! /bin/bash
|
|
|
|
DATABASE=${DATABASE:-/tmp/docker-mailserver/postfix-virtual.cf}
|
|
|
|
errex() {
|
|
echo "$@" 1>&2
|
|
exit 1
|
|
}
|
|
|
|
[ -f $DATABASE ] || errex "No postfix-virtual.cf file"
|
|
[ -s $DATABASE ] || errex "Empty postfix-virtual.cf - no aliases have been added"
|
|
|
|
cat $DATABASE
|