From 9328d488c2e8d2724ae6a04fd9e1512638d71d6d Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Sat, 25 Feb 2023 14:15:55 +0200 Subject: [PATCH] Add dbmail handling --- files/new_mail_alias | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/new_mail_alias b/files/new_mail_alias index 10538c8..000858a 100644 --- a/files/new_mail_alias +++ b/files/new_mail_alias @@ -109,3 +109,6 @@ do done echo "INSERT INTO mail.forwardings (source, destination, porpouse) VALUES ('${alias}','${destination}','${porpouse}');"| mysql mail message "Inserted forwarding from '${alias}' to '${destination}' for the porpouse of '${porpouse}'." p + +result=$(dbmail-users -q -y -c "${destination}" -s "${alias}") +message "Added alias in dbmail. Result: ${result}"