msmtp is successfully installed and works fine to send emails via an external SMTP server.
However the mail command fails to send emails using GNU Mailutils on a Debian 10.
for example
echo "Test" | mail [email protected]
returns
mail: cannot send message: Process exited with a non-zero status
and
echo $?
returns "36"
I'm supposing this is a msmtp is not integrating with the mail command. How do I configure mail to send messages through msmtp?
EDIT: The programs seem to be communicating because the keyring prompt pops up and the login options are set only in ~/.msmtprc