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 personal@external.email
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
Asked by JBC
(61 rep)
Mar 21, 2021, 03:10 AM
Last activity: Apr 4, 2021, 10:28 PM
Last activity: Apr 4, 2021, 10:28 PM