sequencer - fix type

mailserver - fix escaping
This commit is contained in:
2022-12-04 23:38:01 +01:00
parent 770d1dd63c
commit 38f39a51f7
2 changed files with 3 additions and 3 deletions

View File

@@ -222,7 +222,7 @@ step_21() {
for mtaFile in ${mtaMysqlFiles[@]} ; do
mtaVar="MAS_${mtaFile}"
info "creating ${mtaFile}.cf"
exep echo -e "${MAS_VIRTUAL_USER_PART:?}\n${!mtaVar:?}" \> "$mtaMysqlConfLoc/${mtaFile}.cf"
exep echo -e "\"${MAS_VIRTUAL_USER_PART:?}\\n${!mtaVar:?}\"" \> \"$mtaMysqlConfLoc/${mtaFile}.cf\"
done
exe chown -R root:${mtaUser} "$mtaMysqlConfLoc"
@@ -428,7 +428,7 @@ step_100() {
done
[ -n "${1:-}" ] && toAdr="$1"
exe ${asUser}sh -c "echo \"Subject: Test from Postfix\nIt is \$(date)\n\nGreetings \$(whoami)\" | sendmail ${fromAdr}$toAdr"
exe ${asUser}sh -c "echo \"Subject: Test from Postfix\nIt is \$(date)\n\nGreetings \$(whoami)\" | sendmail ${fromAdr:-}${toAdr}"
}
step_102_info() { echo "Show mail queue"; }