mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
13 lines
374 B
Bash
Executable file
13 lines
374 B
Bash
Executable file
#! /bin/bash
|
|
|
|
# shellcheck source=../scripts/helpers/index.sh
|
|
source /usr/local/bin/helpers/index.sh
|
|
|
|
DATABASE=${DATABASE:-/tmp/docker-mailserver/postfix-virtual.cf}
|
|
|
|
[[ -f ${DATABASE} ]] || _errex "Error: No postfix-virtual.cf file"
|
|
[[ -s ${DATABASE} ]] || _errex "Error: Empty postfix-virtual.cf - no aliases have been added"
|
|
|
|
grep -v "^\s*$\|^\s*\#" "${DATABASE}"
|
|
exit 0
|