2017-04-17 18:27:28 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
2022-02-21 11:56:57 +01:00
|
|
|
# shellcheck source=../scripts/helpers/index.sh
|
|
|
|
source /usr/local/bin/helpers/index.sh
|
2017-04-17 18:27:28 +02:00
|
|
|
|
2022-04-20 02:29:28 +02:00
|
|
|
DATABASE='/tmp/docker-mailserver/postfix-virtual.cf'
|
2017-04-17 18:27:28 +02:00
|
|
|
|
2022-03-26 09:30:09 +01:00
|
|
|
[[ -f ${DATABASE} ]] || _exit_with_error "No 'postfix-virtual.cf' file"
|
|
|
|
[[ -s ${DATABASE} ]] || _exit_with_error "Empty 'postfix-virtual.cf' - no aliases have been added"
|
2017-04-17 18:27:28 +02:00
|
|
|
|
2022-06-06 15:07:30 +02:00
|
|
|
_get_valid_lines_from_file "${DATABASE}"
|
2021-02-23 20:03:01 +01:00
|
|
|
exit 0
|