I want it to send notifications email via an external mail provider (like gmail, etc), because the domain is dynamic and thus blocked by other email services.
I can successfully send emails with the msmtp command directly.
If I understood well, msmtp-mta should enable to use the mail command to send mails through msmtp?
However, the mail command returns an error (with mailutils installed):
Code: Select all
echo "Test" | mail personal@external.email
Code: Select all
mail: cannot send message: Process exited with a non-zero status
Code: Select all
echo $?
Without mailutils, the mail command isn't found.
I have followed the instructions on https://wiki.debian.org/msmtp, and also tried to manually start the service , it seems to start but no success in using the mail command, which appears to be what GNUSocial uses.
Any idea how to fix this or an alternative outbound mail system set up?
Much appreciated.