This will install postfix and mailutils without asking any questions and without any prompts.
DEBIAN_FRONTEND=noninteractive apt install -y postfix systemctl restart postfix apt install -y mailutils