chore: Remove old `postfix-virtual.cf` migration logic

This was introduced in 2018, there should be no one needing to rely on this anymore?
This commit is contained in:
polarathene 2024-01-24 20:09:15 +13:00
parent d1d48a61e1
commit 55b2d67edc
1 changed files with 0 additions and 5 deletions

View File

@ -12,11 +12,6 @@ function _handle_postfix_virtual_config() {
local DATABASE_VIRTUAL=/tmp/docker-mailserver/postfix-virtual.cf local DATABASE_VIRTUAL=/tmp/docker-mailserver/postfix-virtual.cf
if [[ -f ${DATABASE_VIRTUAL} ]]; then if [[ -f ${DATABASE_VIRTUAL} ]]; then
# fixing old virtual user file
if grep -q ",$" "${DATABASE_VIRTUAL}"; then
sed -i -e "s|, |,|g" -e "s|,$||g" "${DATABASE_VIRTUAL}"
fi
cp -f "${DATABASE_VIRTUAL}" /etc/postfix/virtual cp -f "${DATABASE_VIRTUAL}" /etc/postfix/virtual
else else
_log 'debug' "'${DATABASE_VIRTUAL}' not provided - no mail alias/forward created" _log 'debug' "'${DATABASE_VIRTUAL}' not provided - no mail alias/forward created"