mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
54904aa02c
* chore(`aliases.sh`): Filepath to local var `DATABASE_VIRTUAL` * chore(`accounts.sh`): Filepath to local var `DATABASE_ACCOUNTS` * chore(`accounts.sh`): Filepath to local var `DATABASE_VIRTUAL` * chore(`accounts.sh`): Filepath to local var `DATABASE_DOVECOT_MASTERS` * chore(`bin/open-dkim`): Filepaths to local vars (accounts,virtual,vhost) * chore(`relay.sh`): Filepath to local var `DATABASE_SASL_PASSWD` * chore: Rename method Prior PR feedback suggested a better helper method name. * chore: Normalize filtering config lines as input for iterating * chore: Remove `_is_comment` helper method No longer serving a purpose with more appropriate filter method for pre-processing the entire config file.
22 lines
645 B
Bash
Executable file
22 lines
645 B
Bash
Executable file
#! /bin/bash
|
|
|
|
# shellcheck source=../scripts/helpers/index.sh
|
|
source /usr/local/bin/helpers/index.sh
|
|
|
|
# suppress error output, e.g. when listmailuser runs in a fresh container (DMS not running)
|
|
# shellcheck source=/dev/null
|
|
source /etc/dms-settings 2>/dev/null
|
|
|
|
DATABASE='/tmp/docker-mailserver/dovecot-masters.cf'
|
|
|
|
[[ -f ${DATABASE} ]] || _exit_with_error "No 'dovecot-masters.cf' file"
|
|
[[ -s ${DATABASE} ]] || _exit_with_error "Empty 'dovecot-masters.cf' - no dovecot master accounts have been added"
|
|
|
|
while read -r LINE
|
|
do
|
|
USER=$(echo "${LINE}" | cut -d'|' -f1)
|
|
echo "* ${USER}"
|
|
done < <(_get_valid_lines_from_file "${DATABASE}")
|
|
|
|
exit 0
|