mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
14 lines
268 B
Plaintext
14 lines
268 B
Plaintext
|
#! /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
|